mirror of
https://github.com/curl/curl.git
synced 2026-07-16 11:17:17 +03:00
docs/examples: workaround broken -Wno-pedantic-ms-format
Avoid CURL_FORMAT_CURL_OFF_T by using unsigned long instead. Improve size_t to long conversion in imap-append.c example. Ref: https://github.com/curl/curl/issues/6079 Ref: https://github.com/curl/curl/pull/6082 Assisted-by: Jay Satiro Reviewed-by: Daniel Stenberg Preparation of #7922
This commit is contained in:
parent
52202691d1
commit
77311f420a
9 changed files with 45 additions and 45 deletions
|
|
@ -51,14 +51,14 @@ static int xferinfo(void *p,
|
|||
be used */
|
||||
if((curtime - myp->lastruntime) >= MINIMAL_PROGRESS_FUNCTIONALITY_INTERVAL) {
|
||||
myp->lastruntime = curtime;
|
||||
fprintf(stderr, "TOTAL TIME: %" CURL_FORMAT_CURL_OFF_T ".%06ld\r\n",
|
||||
(curtime / 1000000), (long)(curtime % 1000000));
|
||||
fprintf(stderr, "TOTAL TIME: %lu.%06lu\r\n",
|
||||
(unsigned long)(curtime / 1000000),
|
||||
(unsigned long)(curtime % 1000000));
|
||||
}
|
||||
|
||||
fprintf(stderr, "UP: %" CURL_FORMAT_CURL_OFF_T " of %" CURL_FORMAT_CURL_OFF_T
|
||||
" DOWN: %" CURL_FORMAT_CURL_OFF_T " of %" CURL_FORMAT_CURL_OFF_T
|
||||
"\r\n",
|
||||
ulnow, ultotal, dlnow, dltotal);
|
||||
fprintf(stderr, "UP: %lu of %lu DOWN: %lu of %lu\r\n",
|
||||
(unsigned long)ulnow, (unsigned long)ultotal,
|
||||
(unsigned long)dlnow, (unsigned long)dltotal);
|
||||
|
||||
if(dlnow > STOP_DOWNLOAD_AFTER_THIS_MANY_BYTES)
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue