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-serverpush.c | |
parent | 4c735b57f7cea253db2c863b75dcce2462fa77db (diff) |
examples: Fix format specifiers
Closes #2561
Diffstat (limited to 'docs/examples/http2-serverpush.c')
-rw-r--r-- | docs/examples/http2-serverpush.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/examples/http2-serverpush.c b/docs/examples/http2-serverpush.c index 0162a8f8a..94c8db975 100644 --- a/docs/examples/http2-serverpush.c +++ b/docs/examples/http2-serverpush.c @@ -51,12 +51,12 @@ void dump(const char *text, unsigned char *ptr, size_t size, /* without the hex output, we can fit more on screen */ width = 0x40; - fprintf(stderr, "%s, %ld bytes (0x%lx)\n", - text, (long)size, (long)size); + fprintf(stderr, "%s, %lu bytes (0x%lx)\n", + 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 */ @@ -180,12 +180,12 @@ static int server_push_callback(CURL *parent, /* write to this file */ curl_easy_setopt(easy, CURLOPT_WRITEDATA, out); - fprintf(stderr, "**** push callback approves stream %u, got %d headers!\n", - count, (int)num_headers); + fprintf(stderr, "**** push callback approves stream %u, got %lu headers!\n", + count, num_headers); for(i = 0; i<num_headers; i++) { headp = curl_pushheader_bynum(headers, i); - fprintf(stderr, "**** header %u: %s\n", (int)i, headp); + fprintf(stderr, "**** header %lu: %s\n", i, headp); } headp = curl_pushheader_byname(headers, ":path"); |