examples: fix -Wformat warnings

When size_t is not a typedef for unsigned long (as usually the case on
Windows), GCC emits -Wformat warnings when using lu and lx format
specifiers with size_t. Silence them with explicit casts to
unsigned long.

Closes https://github.com/curl/curl/pull/2721
This commit is contained in:
Marcel Raad 2018-07-08 16:44:32 +02:00
parent ba1dbd78e5
commit 5bd8c389a3
No known key found for this signature in database
GPG key ID: 07ADACB610D796DA
6 changed files with 13 additions and 13 deletions

View file

@ -100,7 +100,7 @@ int main(void)
* Do something nice with it!
*/
printf("%lu bytes retrieved\n", chunk.size);
printf("%lu bytes retrieved\n", (unsigned long)chunk.size);
}
/* cleanup curl stuff */