Evtloop fixes.
authorPierre Habouzit <madcoder@debian.org>
Sun, 13 Jan 2008 16:49:52 +0000 (17:49 +0100)
committerPierre Habouzit <madcoder@debian.org>
Sun, 13 Jan 2008 16:49:52 +0000 (17:49 +0100)
lib-sys/evtloop.c
lib-sys/evtloop.h

index f9ae21e..1c94706 100644 (file)
@@ -279,8 +279,8 @@ int el_job_connect2(job_t *w, const ACCOUNT *act)
         return -1;
     }
     mutt_message(_("Connecting to %s..."), act->host);
-    rc = el_job_connect(w, res->ai_addr, res->ai_addrlen,
-                        res->ai_family, res->ai_socktype, res->ai_protocol);
+    rc = el_job_connect(w, res->ai_addr, res->ai_addrlen, res->ai_socktype,
+                        res->ai_protocol, act->has_ssl);
     freeaddrinfo (res);
     if (rc) {
         mutt_error(_("Could not connect to %s (%m)."), act->host);
index e9eff3a..48bc86a 100644 (file)
@@ -48,10 +48,10 @@ typedef enum el_status {
 } el_status;
 
 typedef enum el_event {
+    EL_EVT_RUNNING = 0,
     EL_EVT_IN      = EL_READING,
     EL_EVT_OUT     = EL_WRITING,
     EL_EVT_INOUT   = EL_RDWR,
-    EL_EVT_RUNNING = 4,
     EL_EVT_WAKEUP  = 5,
 } el_event;