aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/ftp-wildcard.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-09-09 11:10:04 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-09-09 11:10:18 +0200
commit9e6c3638e625c887cf14a251fe331b59677ff897 (patch)
tree69cdcecd03453a1692e93a5cda9eb7b859d1a9f6 /docs/examples/ftp-wildcard.c
parentfa50d9d96d0d846b066703d549ad7e3b69143fad (diff)
ftp-wildcard.c: spell fix
Reported-By: Frank Gevaerts
Diffstat (limited to 'docs/examples/ftp-wildcard.c')
-rw-r--r--docs/examples/ftp-wildcard.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/examples/ftp-wildcard.c b/docs/examples/ftp-wildcard.c
index 5a2a10311..d175ddfdc 100644
--- a/docs/examples/ftp-wildcard.c
+++ b/docs/examples/ftp-wildcard.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -26,9 +26,9 @@ struct callback_data {
FILE *output;
};
-static long file_is_comming(struct curl_fileinfo *finfo,
- struct callback_data *data,
- int remains);
+static long file_is_coming(struct curl_fileinfo *finfo,
+ struct callback_data *data,
+ int remains);
static long file_is_downloaded(struct callback_data *data);
@@ -61,7 +61,7 @@ int main(int argc, char **argv)
curl_easy_setopt(handle, CURLOPT_WILDCARDMATCH, 1L);
/* callback is called before download of concrete file started */
- curl_easy_setopt(handle, CURLOPT_CHUNK_BGN_FUNCTION, file_is_comming);
+ curl_easy_setopt(handle, CURLOPT_CHUNK_BGN_FUNCTION, file_is_coming);
/* callback is called after data from the file have been transferred */
curl_easy_setopt(handle, CURLOPT_CHUNK_END_FUNCTION, file_is_downloaded);
@@ -89,9 +89,9 @@ int main(int argc, char **argv)
return rc;
}
-static long file_is_comming(struct curl_fileinfo *finfo,
- struct callback_data *data,
- int remains)
+static long file_is_coming(struct curl_fileinfo *finfo,
+ struct callback_data *data,
+ int remains)
{
printf("%3d %40s %10luB ", remains, finfo->filename,
(unsigned long)finfo->size);