diff options
author | Yang Tse <yangsita@gmail.com> | 2011-05-24 17:24:59 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-05-24 17:24:59 +0200 |
commit | de70ddb7490e2cb816649ab0f055413a6df3e2ae (patch) | |
tree | 3d52a1a2dbc6dcc0aaca7c0ccb529638e4173b14 | |
parent | a41c7f97367b893acc4764ac270f7f6cd2374976 (diff) | |
download | curl-de70ddb7490e2cb816649ab0f055413a6df3e2ae.tar.gz |
compiler warning: fix
Fix compiler warning: argument is incompatible with corresponding format
string conversion
-rw-r--r-- | tests/libtest/lib582.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libtest/lib582.c b/tests/libtest/lib582.c index b367550cc..3797e87bb 100644 --- a/tests/libtest/lib582.c +++ b/tests/libtest/lib582.c @@ -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; } |