From 9381f3b5a86d48cf32e0f0ac6afca4b010eb383c Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Thu, 25 Apr 2002 19:57:32 +0000 Subject: [PATCH] fix a compiler error with picky compilers that (correctly) don't let you add to void * git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94804 13f79535-47bb-0310-9956-ffa450edef68 --- modules/metadata/mod_unique_id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/metadata/mod_unique_id.c b/modules/metadata/mod_unique_id.c index 8b9eeccbf6..3ade5c2161 100644 --- a/modules/metadata/mod_unique_id.c +++ b/modules/metadata/mod_unique_id.c @@ -222,7 +222,7 @@ static int unique_id_global_init(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *pt #if APR_HAVE_IPV6 if ((rv = apr_sockaddr_info_get(&sockaddr, str, AF_INET6, 0, 0, p)) == APR_SUCCESS) { memcpy(&global_in_addr, - sockaddr->ipaddr_ptr + sockaddr->ipaddr_len - sizeof(global_in_addr), + (char *)sockaddr->ipaddr_ptr + sockaddr->ipaddr_len - sizeof(global_in_addr), sizeof(global_in_addr)); ap_log_error(APLOG_MARK, APLOG_ALERT, rv, main_server, "mod_unique_id: using low-order bits of IPv6 address " -- 2.40.0