aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/fopen.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/fopen.c
parentdc9e4859bb50e4d438dbbb016870effea395b624 (diff)
examples: declare TU-local variables static
This fixes missing-variable-declarations warnings when building with clang.
Diffstat (limited to 'docs/examples/fopen.c')
-rw-r--r--docs/examples/fopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/fopen.c b/docs/examples/fopen.c
index 95dd4ce9a..1e0a09a0a 100644
--- a/docs/examples/fopen.c
+++ b/docs/examples/fopen.c
@@ -88,7 +88,7 @@ char *url_fgets(char *ptr, size_t size, URL_FILE *file);
void url_rewind(URL_FILE *file);
/* we use a global one for convenience */
-CURLM *multi_handle;
+static CURLM *multi_handle;
/* curl calls this routine to get more data */
static size_t write_callback(char *buffer,