summaryrefslogtreecommitdiff
path: root/docs/examples/http2-upload.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/http2-upload.c')
-rw-r--r--docs/examples/http2-upload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/http2-upload.c b/docs/examples/http2-upload.c
index 95bf861f4..81080eca7 100644
--- a/docs/examples/http2-upload.c
+++ b/docs/examples/http2-upload.c
@@ -73,11 +73,11 @@ void dump(const char *text, int num, unsigned char *ptr, size_t size,
width = 0x40;
fprintf(stderr, "%d %s, %lu bytes (0x%lx)\n",
- num, text, size, size);
+ num, text, (unsigned long)size, (unsigned long)size);
for(i = 0; i<size; i += width) {
- fprintf(stderr, "%4.4lx: ", i);
+ fprintf(stderr, "%4.4lx: ", (unsigned long)i);
if(!nohex) {
/* hex not disabled, show it */