summaryrefslogtreecommitdiff
path: root/src/tool_urlglob.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-12-16 01:00:23 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-12-16 01:00:23 +0100
commitb0670ff12b4d64c09dfb5e65454535970ba3e6c3 (patch)
tree7a6615fc25581e944cef954cfd1c7ac84e919a0c /src/tool_urlglob.h
parent9b61060ffce31f6511ab1984fcaba51b2a626615 (diff)
downloadcurl-b0670ff12b4d64c09dfb5e65454535970ba3e6c3.tar.gz
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_urlglob.h')
-rw-r--r--src/tool_urlglob.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tool_urlglob.h b/src/tool_urlglob.h
index 9fa6f83b0..7a9ec5943 100644
--- a/src/tool_urlglob.h
+++ b/src/tool_urlglob.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2013, 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
@@ -68,9 +68,9 @@ typedef struct {
size_t pos; /* column position of error or 0 */
} URLGlob;
-int glob_url(URLGlob**, char*, unsigned long *, FILE *);
-int glob_next_url(char **, URLGlob *);
-int glob_match_url(char **, char*, URLGlob *);
+CURLcode glob_url(URLGlob**, char*, unsigned long *, FILE *);
+CURLcode glob_next_url(char **, URLGlob *);
+CURLcode glob_match_url(char **, char*, URLGlob *);
void glob_cleanup(URLGlob* glob);
#endif /* HEADER_CURL_TOOL_URLGLOB_H */