this needs to be a pointer, not a constant. why doesn't GCC tell us?
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 11 Dec 2011 18:53:39 +0000 (19:53 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 11 Dec 2011 18:53:39 +0000 (19:53 +0100)
citadel/modules/eventclient/serv_eventclient.c

index 1bd4c7181642380ddc3db5b4a06245b0efba29bb..d930a228a6e8c4a360b833eb3812180ef2ede945 100644 (file)
@@ -216,7 +216,7 @@ gotwatchtime(CURLM *multi, long tblock_ms, void *cglobal) {
                 tblock_ms = 14000;
         ev_timer_set(&global->timeev, 0.5e-3 + 1.0e-3 * tblock_ms, 14.0);
         ev_timer_start(EV_DEFAULT_UC, &global->timeev);
-        curl_multi_perform(global, CURL_POLL_NONE);
+        curl_multi_perform(global, &global->nrun);
         return 0;
 }
 
@@ -355,8 +355,8 @@ int evcurl_init(AsyncIO *IO,
 
         OPT(VERBOSE, (long)1);
                 /* unset in production */
-        OPT(NOPROGRESS, (long)1); 
-        OPT(NOSIGNAL, (long)1);
+        OPT(NOPROGRESS, 1L); 
+        OPT(NOSIGNAL, 1L);
         OPT(FAILONERROR, (long)1);
         OPT(ENCODING, "");
         OPT(FOLLOWLOCATION, (long)1);