diff options
author | Marcel Raad <raad@teamviewer.com> | 2017-04-30 23:29:31 +0200 |
---|---|---|
committer | Marcel Raad <raad@teamviewer.com> | 2017-04-30 23:29:31 +0200 |
commit | c23177d5e90aec2ec42bd20004d0acf0a6412456 (patch) | |
tree | e0bc8e1f451614b06396c44ccf0dad1b3a57dc49 /docs/examples/http2-upload.c | |
parent | dc9e4859bb50e4d438dbbb016870effea395b624 (diff) | |
download | curl-c23177d5e90aec2ec42bd20004d0acf0a6412456.tar.gz |
examples: declare TU-local variables static
This fixes missing-variable-declarations warnings when building with
clang.
Diffstat (limited to 'docs/examples/http2-upload.c')
-rw-r--r-- | docs/examples/http2-upload.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |