From c23177d5e90aec2ec42bd20004d0acf0a6412456 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Sun, 30 Apr 2017 23:29:31 +0200 Subject: examples: declare TU-local variables static This fixes missing-variable-declarations warnings when building with clang. --- docs/examples/http2-upload.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/examples/http2-upload.c') diff --git a/docs/examples/http2-upload.c b/docs/examples/http2-upload.c index aa0ac4458..01dfc0b3d 100644 --- a/docs/examples/http2-upload.c +++ b/docs/examples/http2-upload.c @@ -45,8 +45,8 @@ #define NUM_HANDLES 1000 -void *curl_hnd[NUM_HANDLES]; -int num_transfers; +static void *curl_hnd[NUM_HANDLES]; +static int num_transfers; /* a handle to number lookup, highly ineffective when we do many transfers... */ @@ -177,7 +177,7 @@ static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp) return retcode; } -struct input indata[NUM_HANDLES]; +static struct input indata[NUM_HANDLES]; static void setup(CURL *hnd, int num, const char *upload) { -- cgit v1.2.3