diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-12-16 01:00:23 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-12-16 01:00:23 +0100 |
commit | b0670ff12b4d64c09dfb5e65454535970ba3e6c3 (patch) | |
tree | 7a6615fc25581e944cef954cfd1c7ac84e919a0c /src/tool_operate.c | |
parent | 9b61060ffce31f6511ab1984fcaba51b2a626615 (diff) |
tool_urlglob: unify return codes to use CURLcode
There was a mix of GlobCode, CURLcode and ints and they were mostly
passing around CURLcode errors. This change makes the functions use only
CURLcode and removes the GlobCode type completely.
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 3fa0db199..f1859a214 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -398,7 +398,7 @@ static CURLcode operate_do(struct GlobalConfig *global, if(!config->globoff && infiles) { /* Unless explicitly shut off */ - res = (CURLcode) glob_url(&inglob, infiles, &infilenum, + res = glob_url(&inglob, infiles, &infilenum, global->showerror?global->errors:NULL); if(res) { Curl_safefree(outfiles); @@ -449,7 +449,7 @@ static CURLcode operate_do(struct GlobalConfig *global, if(!config->globoff) { /* Unless explicitly shut off, we expand '{...}' and '[...]' expressions and return total number of URLs in pattern set */ - res = (CURLcode) glob_url(&urls, urlnode->url, &urlnum, + res = glob_url(&urls, urlnode->url, &urlnum, global->showerror?global->errors:NULL); if(res) { Curl_safefree(uploadfile); |