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-download.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-download.c')
-rw-r--r-- | docs/examples/http2-download.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/http2-download.c b/docs/examples/http2-download.c index 0cf83f524..8c0b0876e 100644 --- a/docs/examples/http2-download.c +++ b/docs/examples/http2-download.c @@ -43,8 +43,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... */ |