]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool: Fix format specifiers
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Fri, 11 May 2018 15:34:55 +0000 (17:34 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 14 May 2018 07:42:27 +0000 (09:42 +0200)
src/tool_cb_dbg.c
src/tool_urlglob.c

index aa1ef857c197be474dccad91fb11c384e8ae9e6e..16bfb42085597a8bcd257ed0a87c7d772a81bba6 100644 (file)
@@ -146,7 +146,7 @@ int tool_debug_cb(CURL *handle, curl_infotype type,
         if(!config->isatty || ((output != stderr) && (output != stdout))) {
           if(!newl)
             fprintf(output, "%s%s ", timebuf, s_infotype[type]);
-          fprintf(output, "[%zd bytes data]\n", size);
+          fprintf(output, "[%zu bytes data]\n", size);
           newl = FALSE;
           traced_data = TRUE;
         }
@@ -229,7 +229,7 @@ static void dump(const char *timebuf, const char *text,
     /* without the hex output, we can fit more on screen */
     width = 0x40;
 
-  fprintf(stream, "%s%s, %zd bytes (0x%zx)\n", timebuf, text, size, size);
+  fprintf(stream, "%s%s, %zu bytes (0x%zx)\n", timebuf, text, size, size);
 
   for(i = 0; i < size; i += width) {
 
index f78d058cdc3302b47e5425cae267e9c5164d5994..6fae23620e2c6657bee3f30dafd90cbef71c15b2 100644 (file)
@@ -579,7 +579,7 @@ CURLcode glob_next_url(char **globbed, URLGlob *glob)
       }
       break;
     case UPTNumRange:
-      snprintf(buf, buflen, "%0*ld",
+      snprintf(buf, buflen, "%0*lu",
                pat->content.NumRange.padlength,
                pat->content.NumRange.ptr_n);
       len = strlen(buf);