You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2012/12/17 00:16:56 UTC
svn commit: r1422712 - /httpd/httpd/trunk/server/util.c
Author: sf
Date: Sun Dec 16 23:16:55 2012
New Revision: 1422712
URL: http://svn.apache.org/viewvc?rev=1422712&view=rev
Log:
remove unnecessary cast
Modified:
httpd/httpd/trunk/server/util.c
Modified: httpd/httpd/trunk/server/util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util.c?rev=1422712&r1=1422711&r2=1422712&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util.c (original)
+++ httpd/httpd/trunk/server/util.c Sun Dec 16 23:16:55 2012
@@ -1961,14 +1961,13 @@ AP_DECLARE(apr_size_t) ap_escape_errorlo
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)