summaryrefslogtreecommitdiff
path: root/xlate/xlate.c
diff options
context:
space:
mode:
authorkfogel <kfogel@13f79535-47bb-0310-9956-ffa450edef68>2002-07-19 20:05:26 +0000
committerkfogel <kfogel@13f79535-47bb-0310-9956-ffa450edef68>2002-07-19 20:05:26 +0000
commitee45ec68ffface68f9fe617fb29b9b3cdc6f1ab7 (patch)
treedea6362c5750ec1ac5d8ee191a3e2fd5c6ce7153 /xlate/xlate.c
parenta0d831fba5c4d9133babe0875272299cb4dd50e5 (diff)
downloadlibapr-util-ee45ec68ffface68f9fe617fb29b9b3cdc6f1ab7.tar.gz
* apr-util/xlate/xlate.c
(apr_xlate_open, apr_xlate_cleanup): Return APR_EINVAL where used to return EINVAL. * apr-util/include/apr_xlate.h (apr_xlate_open, apr_xlate_sb_get, apr_xlate_conv_buffer, apr_xlate_close): Document error return case. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58707 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'xlate/xlate.c')
-rw-r--r--xlate/xlate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xlate/xlate.c b/xlate/xlate.c
index e9abbd12..f6d0fe59 100644
--- a/xlate/xlate.c
+++ b/xlate/xlate.c
@@ -187,7 +187,7 @@ static apr_status_t apr_xlate_cleanup(void *convset)
if (iconv_(_close)(old->ich)) {
int rv = errno;
/* Sometimes, iconv is not good about setting errno. */
- return rv ? rv : EINVAL;
+ return rv ? rv : APR_EINVAL;
}
}
#endif
@@ -284,7 +284,7 @@ APU_DECLARE(apr_status_t) apr_xlate_open(apr_xlate_t **convset,
if (new->ich == (iconv_(_t))-1) {
int rv = errno;
/* Sometimes, iconv is not good about setting errno. */
- return rv ? rv : EINVAL;
+ return rv ? rv : APR_EINVAL;
}
found = 1;
check_sbcs(new);
@@ -299,8 +299,8 @@ APU_DECLARE(apr_status_t) apr_xlate_open(apr_xlate_t **convset,
status = APR_SUCCESS;
}
else {
- status = EINVAL; /* same as what iconv() would return if it
- couldn't handle the pair */
+ status = APR_EINVAL; /* iconv() would return EINVAL if it
+ couldn't handle the pair */
}
return status;