summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/apr_uri.h14
-rw-r--r--uri/apr_uri.c10
2 files changed, 12 insertions, 12 deletions
diff --git a/include/apr_uri.h b/include/apr_uri.h
index 548a23d2..82a86b24 100644
--- a/include/apr_uri.h
+++ b/include/apr_uri.h
@@ -154,21 +154,21 @@ APU_DECLARE(char *) apr_uri_unparse(apr_pool_t *p,
* @param p The pool to allocate out of
* @param uri The uri to parse
* @param uptr The apr_uri_t to fill out
- * @return 0 for success or error code
+ * @return APR_SUCCESS for success or error code
*/
-APU_DECLARE(int) apr_uri_parse(apr_pool_t *p, const char *uri,
- apr_uri_t *uptr);
+APU_DECLARE(apr_status_t) apr_uri_parse(apr_pool_t *p, const char *uri,
+ apr_uri_t *uptr);
/**
* Special case for CONNECT parsing: it comes with the hostinfo part only
* @param p The pool to allocate out of
* @param hostinfo The hostinfo string to parse
* @param uptr The apr_uri_t to fill out
- * @return 0 for success or error code
+ * @return APR_SUCCESS for success or error code
*/
-APU_DECLARE(int) apr_uri_parse_hostinfo(apr_pool_t *p,
- const char *hostinfo,
- apr_uri_t *uptr);
+APU_DECLARE(apr_status_t) apr_uri_parse_hostinfo(apr_pool_t *p,
+ const char *hostinfo,
+ apr_uri_t *uptr);
/** @} */
#ifdef __cplusplus
diff --git a/uri/apr_uri.c b/uri/apr_uri.c
index 0a02c879..3245c19a 100644
--- a/uri/apr_uri.c
+++ b/uri/apr_uri.c
@@ -253,8 +253,8 @@ static const unsigned char uri_delims[256] = {
* - fills in fields of uri_components *uptr
* - none on any of the r->* fields
*/
-APU_DECLARE(int) apr_uri_parse(apr_pool_t *p, const char *uri,
- apr_uri_t *uptr)
+APU_DECLARE(apr_status_t) apr_uri_parse(apr_pool_t *p, const char *uri,
+ apr_uri_t *uptr)
{
const char *s;
const char *s1;
@@ -413,9 +413,9 @@ deal_with_host:
* currently at http://www.mcom.com/newsref/std/tunneling_ssl.html
* for the format of the "CONNECT host:port HTTP/1.0" request
*/
-APU_DECLARE(int) apr_uri_parse_hostinfo(apr_pool_t *p,
- const char *hostinfo,
- apr_uri_t *uptr)
+APU_DECLARE(apr_status_t) apr_uri_parse_hostinfo(apr_pool_t *p,
+ const char *hostinfo,
+ apr_uri_t *uptr)
{
const char *s;
char *endstr;