summaryrefslogtreecommitdiff
path: root/docs/examples/http2-upload.c
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-04-30 23:29:31 +0200
committerMarcel Raad <raad@teamviewer.com>2017-04-30 23:29:31 +0200
commitc23177d5e90aec2ec42bd20004d0acf0a6412456 (patch)
treee0bc8e1f451614b06396c44ccf0dad1b3a57dc49 /docs/examples/http2-upload.c
parentdc9e4859bb50e4d438dbbb016870effea395b624 (diff)
downloadgnurl-c23177d5e90aec2ec42bd20004d0acf0a6412456.tar.gz
gnurl-c23177d5e90aec2ec42bd20004d0acf0a6412456.tar.bz2
gnurl-c23177d5e90aec2ec42bd20004d0acf0a6412456.zip
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.c6
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)
{