mirror of
https://github.com/curl/curl.git
synced 2026-08-25 22:03:47 +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
|
|
@ -120,8 +120,7 @@ int main(void)
|
|||
return 1;
|
||||
}
|
||||
|
||||
printf("Sent %" CURL_FORMAT_CURL_OFF_T " bytes.\n",
|
||||
(curl_off_t)nsent);
|
||||
printf("Sent %lu bytes.\n", (unsigned long)nsent);
|
||||
|
||||
} while(nsent_total < request_len);
|
||||
|
||||
|
|
@ -151,8 +150,7 @@ int main(void)
|
|||
break;
|
||||
}
|
||||
|
||||
printf("Received %" CURL_FORMAT_CURL_OFF_T " bytes.\n",
|
||||
(curl_off_t)nread);
|
||||
printf("Received %lu bytes.\n", (unsigned long)nread);
|
||||
}
|
||||
|
||||
/* always cleanup */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue