diff options
author | rooneg <rooneg@13f79535-47bb-0310-9956-ffa450edef68> | 2006-10-10 16:56:43 +0000 |
---|---|---|
committer | rooneg <rooneg@13f79535-47bb-0310-9956-ffa450edef68> | 2006-10-10 16:56:43 +0000 |
commit | 0c2330d1650db63a4d82fe67dddf1edaaa6b4a9c (patch) | |
tree | af27fd34a1485d63e339ff4792ad805a6fe068e1 /memcache | |
parent | c2f2cbca5d53f9774421fc86b0838aa111c9e113 (diff) | |
download | libapr-util-0c2330d1650db63a4d82fe67dddf1edaaa6b4a9c.tar.gz |
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
Diffstat (limited to 'memcache')
-rw-r--r-- | memcache/apr_memcache.c | 12 |
1 files changed, 9 insertions, 3 deletions
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; |