summaryrefslogtreecommitdiffstats
path: root/server/util.c
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2012-12-17 00:16:55 +0100
committerStefan Fritsch <sf@apache.org>2012-12-17 00:16:55 +0100
commit91c6296f271119266381ae0b5368f92bc50b276c (patch)
treeba289ec5ba85c24d4d763673e728886de1e04b31 /server/util.c
parentXforms. (diff)
downloadapache2-91c6296f271119266381ae0b5368f92bc50b276c.tar.xz
apache2-91c6296f271119266381ae0b5368f92bc50b276c.zip
remove unnecessary cast
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1422712 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--server/util.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/server/util.c b/server/util.c
index 3b14e101a0..d77719ebda 100644
--- a/server/util.c
+++ b/server/util.c
@@ -1961,14 +1961,13 @@ AP_DECLARE(apr_size_t) ap_escape_errorlog_item(char *dest, const char *source,
AP_DECLARE(void) ap_bin2hex(const void *src, apr_size_t srclen, char *dest)
{
const unsigned char *in = src;
- unsigned char *out = (unsigned char *)dest;
apr_size_t i;
for (i = 0; i < srclen; i++) {
- *out++ = c2x_table[in[i] >> 4];
- *out++ = c2x_table[in[i] & 0xf];
+ *dest++ = c2x_table[in[i] >> 4];
+ *dest++ = c2x_table[in[i] & 0xf];
}
- *out = '\0';
+ *dest = '\0';
}
AP_DECLARE(int) ap_is_directory(apr_pool_t *p, const char *path)