diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-10-13 19:39:41 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-10-15 20:42:05 +0200 |
commit | d774802eec7f8f10a0936a85047f8ef9daed70f2 (patch) | |
tree | 0f47323517c0bb334b407b552d4490ebc7da9e63 /src/tool_operate.c | |
parent | 69c0d3fbc8bfb04d59b65ca4e393e3a5161097f4 (diff) |
tool: use XFERFUNCTION to save some casts
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r-- | src/tool_operate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index 6615270e0..7b43691bb 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1235,8 +1235,8 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[]) !config->noprogress && !config->mute) { /* we want the alternative style, then we have to implement it ourselves! */ - my_setopt(curl, CURLOPT_PROGRESSFUNCTION, tool_progress_cb); - my_setopt(curl, CURLOPT_PROGRESSDATA, &progressbar); + my_setopt(curl, CURLOPT_XFERINFOFUNCTION, tool_progress_cb); + my_setopt(curl, CURLOPT_XFERINFODATA, &progressbar); } /* new in libcurl 7.24.0: */ |