diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2018-05-28 21:46:22 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-05-31 11:34:32 +0200 |
commit | 8ea5d41fe0167802c74a049e8409a85fb68083be (patch) | |
tree | 5fc7fc8fe2d5ecbce37bc2031e0f1af638155f63 /lib/imap.c | |
parent | 946ce5b61fc3832935ea92b4388116c7f637fb8c (diff) | |
download | curl-8ea5d41fe0167802c74a049e8409a85fb68083be.tar.gz |
strictness: correct {infof, failf} format specifiers
Closes #2623
Diffstat (limited to 'lib/imap.c')
-rw-r--r-- | lib/imap.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/imap.c b/lib/imap.c index cf278a22b..ac7b906b2 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -1119,7 +1119,7 @@ static CURLcode imap_state_fetch_resp(struct connectdata *conn, int imapcode, } if(parsed) { - infof(data, "Found %" CURL_FORMAT_CURL_OFF_TU " bytes to download\n", + infof(data, "Found %" CURL_FORMAT_CURL_OFF_T " bytes to download\n", size); Curl_pgrsSetDownloadSize(data, size); @@ -1144,10 +1144,8 @@ static CURLcode imap_state_fetch_resp(struct connectdata *conn, int imapcode, data->req.bytecount += chunk; - infof(data, "Written %" CURL_FORMAT_CURL_OFF_TU - " bytes, %" CURL_FORMAT_CURL_OFF_TU - " bytes are left for transfer\n", (curl_off_t)chunk, - size - chunk); + infof(data, "Written %zu bytes, %" CURL_FORMAT_CURL_OFF_TU + " bytes are left for transfer\n", chunk, size - chunk); /* Have we used the entire cache or just part of it?*/ if(pp->cache_size > chunk) { |