]> granicus.if.org Git - curl/commitdiff
use %ld when printfing longs
authorDaniel Stenberg <daniel@haxx.se>
Wed, 25 Feb 2004 15:41:36 +0000 (15:41 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 25 Feb 2004 15:41:36 +0000 (15:41 +0000)
src/writeout.c

index a92dab715bd6c66ce5f7256333fd37f0e55b5da5..6190c86c42b4bdb217689d6c664998a1aa75947b 100644 (file)
@@ -119,17 +119,17 @@ void ourWriteOut(CURL *curl, char *writeinfo)
               case VAR_HTTP_CODE:
                 if(CURLE_OK ==
                    curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &longinfo))
-                  fprintf(stream, "%03d", longinfo);
+                  fprintf(stream, "%03ld", longinfo);
                 break;
               case VAR_HEADER_SIZE:
                 if(CURLE_OK ==
                    curl_easy_getinfo(curl, CURLINFO_HEADER_SIZE, &longinfo))
-                  fprintf(stream, "%d", longinfo);
+                  fprintf(stream, "%ld", longinfo);
                 break;
               case VAR_REQUEST_SIZE:
                 if(CURLE_OK ==
                    curl_easy_getinfo(curl, CURLINFO_REQUEST_SIZE, &longinfo))
-                  fprintf(stream, "%d", longinfo);
+                  fprintf(stream, "%ld", longinfo);
                 break;
               case VAR_TOTAL_TIME:
                 if(CURLE_OK ==