mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
use %ld when printfing longs
This commit is contained in:
parent
f9b2b7940e
commit
37817667e2
@ -119,17 +119,17 @@ void ourWriteOut(CURL *curl, char *writeinfo)
|
|||||||
case VAR_HTTP_CODE:
|
case VAR_HTTP_CODE:
|
||||||
if(CURLE_OK ==
|
if(CURLE_OK ==
|
||||||
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &longinfo))
|
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &longinfo))
|
||||||
fprintf(stream, "%03d", longinfo);
|
fprintf(stream, "%03ld", longinfo);
|
||||||
break;
|
break;
|
||||||
case VAR_HEADER_SIZE:
|
case VAR_HEADER_SIZE:
|
||||||
if(CURLE_OK ==
|
if(CURLE_OK ==
|
||||||
curl_easy_getinfo(curl, CURLINFO_HEADER_SIZE, &longinfo))
|
curl_easy_getinfo(curl, CURLINFO_HEADER_SIZE, &longinfo))
|
||||||
fprintf(stream, "%d", longinfo);
|
fprintf(stream, "%ld", longinfo);
|
||||||
break;
|
break;
|
||||||
case VAR_REQUEST_SIZE:
|
case VAR_REQUEST_SIZE:
|
||||||
if(CURLE_OK ==
|
if(CURLE_OK ==
|
||||||
curl_easy_getinfo(curl, CURLINFO_REQUEST_SIZE, &longinfo))
|
curl_easy_getinfo(curl, CURLINFO_REQUEST_SIZE, &longinfo))
|
||||||
fprintf(stream, "%d", longinfo);
|
fprintf(stream, "%ld", longinfo);
|
||||||
break;
|
break;
|
||||||
case VAR_TOTAL_TIME:
|
case VAR_TOTAL_TIME:
|
||||||
if(CURLE_OK ==
|
if(CURLE_OK ==
|
||||||
|
Loading…
Reference in New Issue
Block a user