diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2018-05-06 19:44:03 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-05-14 09:43:15 +0200 |
commit | 13505dcb5573e256fd14daf97afefb8b9a7c6263 (patch) | |
tree | c0215e4e4d63516e18269010a0e1e882113ea790 /docs/examples/http2-download.c | |
parent | 4c735b57f7cea253db2c863b75dcce2462fa77db (diff) | |
download | curl-13505dcb5573e256fd14daf97afefb8b9a7c6263.tar.gz |
examples: Fix format specifiers
Closes #2561
Diffstat (limited to 'docs/examples/http2-download.c')
-rw-r--r-- | docs/examples/http2-download.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/examples/http2-download.c b/docs/examples/http2-download.c index 8515663f1..cc9ff2b58 100644 --- a/docs/examples/http2-download.c +++ b/docs/examples/http2-download.c @@ -71,12 +71,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 */ |