diff options
author | Nils Gillmann <gillmann@gnunet.org> | 2018-05-23 10:24:02 +0000 |
---|---|---|
committer | Nils Gillmann <gillmann@gnunet.org> | 2018-05-23 10:24:02 +0000 |
commit | 97f0e8cf8585325401b9d19e433131722f978984 (patch) | |
tree | 935fa45929a646222b5abdd260a7bfd4be2cd836 /docs/examples/http2-upload.c | |
parent | 422f18ebe7ad2cbcd5d45ed05ae02e959e4a7d8b (diff) | |
parent | cb013830383f1ccc9757aba36bc32df5ec281c02 (diff) | |
download | gnurl-97f0e8cf8585325401b9d19e433131722f978984.tar.gz gnurl-97f0e8cf8585325401b9d19e433131722f978984.tar.bz2 gnurl-97f0e8cf8585325401b9d19e433131722f978984.zip |
Merge tag 'curl-7_60_0' (with fixes)
curl 7.60.0
Signed-off-by: Nils Gillmann <gillmann@gnunet.org>
Diffstat (limited to 'docs/examples/http2-upload.c')
-rw-r--r-- | docs/examples/http2-upload.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/examples/http2-upload.c b/docs/examples/http2-upload.c index a2561fe7e..95bf861f4 100644 --- a/docs/examples/http2-upload.c +++ b/docs/examples/http2-upload.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -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 */ @@ -113,7 +113,7 @@ int my_trace(CURL *handle, curl_infotype type, char *data, size_t size, void *userp) { - char timebuf[20]; + char timebuf[60]; const char *text; int num = hnd2num(handle); static time_t epoch_offset; |