examples: declare TU-local variables static

This fixes missing-variable-declarations warnings when building with
clang.
This commit is contained in:
Marcel Raad 2017-04-30 23:29:31 +02:00
parent dc9e4859bb
commit c23177d5e9
No known key found for this signature in database
GPG key ID: B4668817AE6D6CD4
5 changed files with 8 additions and 8 deletions

View file

@ -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)
{