mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:53:37 +03:00
docs: fix CURLINFO_*_T examples use of CURL_FORMAT_CURL_OFF_T
- Put a percent sign before each CURL_FORMAT_CURL_OFF_T in printf. For example "%" CURL_FORMAT_CURL_OFF_T becomes %lld or similar. Bug: https://curl.haxx.se/mail/lib-2018-03/0140.html Reported-by: David L.
This commit is contained in:
parent
bea18c7f39
commit
cbc0f131c2
6 changed files with 6 additions and 6 deletions
|
|
@ -49,7 +49,7 @@ if(curl) {
|
|||
curl_off_t dl;
|
||||
res = curl_easy_getinfo(curl, CURLINFO_SIZE_DOWNLOAD_T, &dl);
|
||||
if(!res) {
|
||||
printf("Downloaded " CURL_FORMAT_CURL_OFF_T " bytes\\n", cl);
|
||||
printf("Downloaded %" CURL_FORMAT_CURL_OFF_T " bytes\\n", dl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue