]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Compiler warning fix
authorYang Tse <yangsita@gmail.com>
Tue, 10 Oct 2006 23:58:02 +0000 (23:58 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 10 Oct 2006 23:58:02 +0000 (23:58 +0000)
tests/libtest/lib536.c

index a1099fe62e087195df457c6af211664a27645fb0..40b45e47d2b21031dc0f35fe4a3e7d5f829f353c 100644 (file)
@@ -41,9 +41,9 @@ static CURLMcode perform(CURLM * multi)
                FD_ZERO(&fdexcep);
                curl_multi_fdset(multi, &fdread, &fdwrite, &fdexcep, &maxfd);
                if (maxfd < 0)
-                       return -1;
+                       return (CURLMcode) ~CURLM_OK;
                if (select(maxfd + 1, &fdread, &fdwrite, &fdexcep, 0) == -1)
-                       return -1;
+                       return (CURLMcode) ~CURLM_OK;
        }
 }