examples: Fix format specifiers

Closes #2561
This commit is contained in:
Rikard Falkeborn 2018-05-06 19:44:03 +02:00 committed by Daniel Stenberg
parent 4c735b57f7
commit 13505dcb55
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
7 changed files with 20 additions and 20 deletions

View file

@ -72,12 +72,12 @@ void dump(const char *text, int num, unsigned char *ptr, size_t size,
/* without the hex output, we can fit more on screen */
width = 0x40;
fprintf(stderr, "%d %s, %ld bytes (0x%lx)\n",
num, text, (long)size, (long)size);
fprintf(stderr, "%d %s, %lu bytes (0x%lx)\n",
num, text, size, size);
for(i = 0; i<size; i += width) {
fprintf(stderr, "%4.4lx: ", (long)i);
fprintf(stderr, "%4.4lx: ", i);
if(!nohex) {
/* hex not disabled, show it */