From 8ea5d41fe0167802c74a049e8409a85fb68083be Mon Sep 17 00:00:00 2001 From: Rikard Falkeborn Date: Mon, 28 May 2018 21:46:22 +0200 Subject: strictness: correct {infof, failf} format specifiers Closes #2623 --- lib/imap.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/imap.c') 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) { -- cgit v1.2.3