From 0c2330d1650db63a4d82fe67dddf1edaaa6b4a9c Mon Sep 17 00:00:00 2001 From: rooneg Date: Tue, 10 Oct 2006 16:56:43 +0000 Subject: Fix some warnings. Pointed out by: jorton * memcache/apr_memcache.c (apr_memcache_multgetp): Fix type punned pointer warnings. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@454830 13f79535-47bb-0310-9956-ffa450edef68 --- memcache/apr_memcache.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'memcache') diff --git a/memcache/apr_memcache.c b/memcache/apr_memcache.c index 5da427bb..8e6dc056 100644 --- a/memcache/apr_memcache.c +++ b/memcache/apr_memcache.c @@ -1125,7 +1125,9 @@ apr_memcache_multgetp(apr_memcache_t *mc, /* build all the queries */ value_hash_index = apr_hash_first(temp_pool, values); while (value_hash_index) { - apr_hash_this(value_hash_index, NULL, NULL, (void**)&value); + void *v; + apr_hash_this(value_hash_index, NULL, NULL, &v); + value = v; value_hash_index = apr_hash_next(value_hash_index); klen = strlen(value->key); @@ -1199,7 +1201,9 @@ apr_memcache_multgetp(apr_memcache_t *mc, query_hash_index = apr_hash_first(temp_pool, server_queries); while (query_hash_index) { - apr_hash_this(query_hash_index, NULL, NULL, (void**)&server_query); + void *v; + apr_hash_this(query_hash_index, NULL, NULL, &v); + server_query = v; query_hash_index = apr_hash_next(query_hash_index); conn = server_query->conn; @@ -1344,7 +1348,9 @@ apr_memcache_multgetp(apr_memcache_t *mc, query_hash_index = apr_hash_first(temp_pool, server_queries); while (query_hash_index) { - apr_hash_this(query_hash_index, NULL, NULL, (void**)&server_query); + void *v; + apr_hash_this(query_hash_index, NULL, NULL, &v); + server_query = v; query_hash_index = apr_hash_next(query_hash_index); conn = server_query->conn; -- cgit v1.2.1