Loading docs/examples/debug.c +3 −3 Original line number Diff line number Diff line Loading @@ -44,12 +44,12 @@ void dump(const char *text, /* without the hex output, we can fit more on screen */ width = 0x40; fprintf(stream, "%s, %10.10ld bytes (0x%8.8lx)\n", text, (long)size, (long)size); fprintf(stream, "%s, %10.10lu bytes (0x%8.8lx)\n", text, size, size); for(i = 0; i<size; i += width) { fprintf(stream, "%4.4lx: ", (long)i); fprintf(stream, "%4.4lx: ", i); if(!nohex) { /* hex not disabled, show it */ Loading docs/examples/getinmemory.c +1 −1 Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ int main(void) * Do something nice with it! */ printf("%lu bytes retrieved\n", (long)chunk.size); printf("%lu bytes retrieved\n", chunk.size); } /* cleanup curl stuff */ Loading docs/examples/http2-download.c +3 −3 Original line number Diff line number Diff line Loading @@ -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 */ Loading docs/examples/http2-serverpush.c +6 −6 Original line number Diff line number Diff line Loading @@ -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 */ Loading Loading @@ -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"); Loading docs/examples/http2-upload.c +3 −3 Original line number Diff line number Diff line Loading @@ -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 */ Loading Loading
docs/examples/debug.c +3 −3 Original line number Diff line number Diff line Loading @@ -44,12 +44,12 @@ void dump(const char *text, /* without the hex output, we can fit more on screen */ width = 0x40; fprintf(stream, "%s, %10.10ld bytes (0x%8.8lx)\n", text, (long)size, (long)size); fprintf(stream, "%s, %10.10lu bytes (0x%8.8lx)\n", text, size, size); for(i = 0; i<size; i += width) { fprintf(stream, "%4.4lx: ", (long)i); fprintf(stream, "%4.4lx: ", i); if(!nohex) { /* hex not disabled, show it */ Loading
docs/examples/getinmemory.c +1 −1 Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ int main(void) * Do something nice with it! */ printf("%lu bytes retrieved\n", (long)chunk.size); printf("%lu bytes retrieved\n", chunk.size); } /* cleanup curl stuff */ Loading
docs/examples/http2-download.c +3 −3 Original line number Diff line number Diff line Loading @@ -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 */ Loading
docs/examples/http2-serverpush.c +6 −6 Original line number Diff line number Diff line Loading @@ -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 */ Loading Loading @@ -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"); Loading
docs/examples/http2-upload.c +3 −3 Original line number Diff line number Diff line Loading @@ -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 */ Loading