From: Rikard Falkeborn Date: Fri, 11 May 2018 15:34:55 +0000 (+0200) Subject: tool: Fix format specifiers X-Git-Tag: curl-7_60_0~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4c735b57f7cea253db2c863b75dcce2462fa77db;p=thirdparty%2Fcurl.git tool: Fix format specifiers --- diff --git a/src/tool_cb_dbg.c b/src/tool_cb_dbg.c index aa1ef857c1..16bfb42085 100644 --- a/src/tool_cb_dbg.c +++ b/src/tool_cb_dbg.c @@ -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) { diff --git a/src/tool_urlglob.c b/src/tool_urlglob.c index f78d058cdc..6fae23620e 100644 --- a/src/tool_urlglob.c +++ b/src/tool_urlglob.c @@ -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);