diff options
author | Yang Tse <yangsita@gmail.com> | 2012-04-13 17:58:41 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-04-13 17:59:49 +0200 |
commit | 865893fb143540037ca34f6a4438ebe2e286ec5a (patch) | |
tree | 7e915522d0c9e6eafd0a4d30929dfa45c3695da3 /docs/examples/ftp-wildcard.c | |
parent | a60edcc6d445e7e0517589cf5fda2682bd89e34e (diff) |
examples: fix compiler warnings
Diffstat (limited to 'docs/examples/ftp-wildcard.c')
-rw-r--r-- | docs/examples/ftp-wildcard.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/examples/ftp-wildcard.c b/docs/examples/ftp-wildcard.c index fd92ca651..5a2a10311 100644 --- a/docs/examples/ftp-wildcard.c +++ b/docs/examples/ftp-wildcard.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2012, 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 @@ -33,7 +33,7 @@ static long file_is_comming(struct curl_fileinfo *finfo, static long file_is_downloaded(struct callback_data *data); static size_t write_it(char *buff, size_t size, size_t nmemb, - struct callback_data *data); + void *cb_data); int main(int argc, char **argv) { @@ -135,8 +135,9 @@ static long file_is_downloaded(struct callback_data *data) } static size_t write_it(char *buff, size_t size, size_t nmemb, - struct callback_data *data) + void *cb_data) { + struct callback_data *data = cb_data; size_t written = 0; if(data->output) written = fwrite(buff, size, nmemb, data->output); |