You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by ro...@apache.org on 2006/10/10 18:56:43 UTC

svn commit: r454830 - /apr/apr-util/trunk/memcache/apr_memcache.c

Author: rooneg
Date: Tue Oct 10 09:56:43 2006
New Revision: 454830

URL: http://svn.apache.org/viewvc?view=rev&rev=454830
Log:
Fix some warnings.

Pointed out by: jorton

* memcache/apr_memcache.c
  (apr_memcache_multgetp): Fix type punned pointer warnings.

Modified:
    apr/apr-util/trunk/memcache/apr_memcache.c

Modified: apr/apr-util/trunk/memcache/apr_memcache.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/memcache/apr_memcache.c?view=diff&rev=454830&r1=454829&r2=454830
==============================================================================
--- apr/apr-util/trunk/memcache/apr_memcache.c (original)
+++ apr/apr-util/trunk/memcache/apr_memcache.c Tue Oct 10 09:56:43 2006
@@ -1125,7 +1125,9 @@
     /* 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 @@
     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 @@
     
     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;