]> granicus.if.org Git - curl/commitdiff
compiler warning: fix
authorYang Tse <yangsita@gmail.com>
Tue, 24 May 2011 15:24:59 +0000 (17:24 +0200)
committerYang Tse <yangsita@gmail.com>
Tue, 24 May 2011 15:24:59 +0000 (17:24 +0200)
Fix compiler warning: argument is incompatible with corresponding format
string conversion

tests/libtest/lib582.c

index b367550cc9bb1b9f9bf5e79335d7e55d4d8b9a41..3797e87bb6ae655508b7b5f34725ef1d3def42a0 100644 (file)
@@ -129,7 +129,7 @@ static int checkForCompletion(CURLM* curl, int* success)
   CURLMsg* message;
   int result = 0;
   *success = 0;
-  while ((message = curl_multi_info_read(curl, &numMessages)) != 0) {
+  while ((message = curl_multi_info_read(curl, &numMessages)) != NULL) {
     if (message->msg == CURLMSG_DONE) {
       result = 1;
       if (message->data.result == CURLE_OK)
@@ -139,7 +139,7 @@ static int checkForCompletion(CURLM* curl, int* success)
     }
     else {
       fprintf(stderr, "Got an unexpected message from curl: %i\n",
-              message->msg);
+              (int)message->msg);
       result = 1;
       *success = 0;
     }