mirror of
https://github.com/curl/curl.git
synced 2026-06-17 08:05:37 +03:00
compiler warning: fix
Fix compiler warning: argument is incompatible with corresponding format string conversion
This commit is contained in:
parent
a41c7f9736
commit
de70ddb749
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue