apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r329139 - in /apr/apr-util/trunk: include/apr_memcache.h memcache/apr_memcache.c
Date Fri, 28 Oct 2005 07:13:13 GMT
Author: pquerna
Date: Fri Oct 28 00:13:11 2005
New Revision: 329139

URL: http://svn.apache.org/viewcvs?rev=329139&view=rev
Log:
Use apr_size_t instead of apr_uint32_t in several places.

Suggested By: Joe Orton

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

Modified: apr/apr-util/trunk/include/apr_memcache.h
URL: http://svn.apache.org/viewcvs/apr/apr-util/trunk/include/apr_memcache.h?rev=329139&r1=329138&r2=329139&view=diff
==============================================================================
--- apr/apr-util/trunk/include/apr_memcache.h (original)
+++ apr/apr-util/trunk/include/apr_memcache.h Fri Oct 28 00:13:11 2005
@@ -91,7 +91,7 @@
  * @remark The crc32 hash is not compatible with old memcached clients.
  */
 APR_DECLARE(apr_uint32_t)
-apr_memcache_hash(const char *data, apr_uint32_t data_len);
+apr_memcache_hash(const char *data, apr_size_t data_len);
 
 /**
  * Picks a server based on a hash

Modified: apr/apr-util/trunk/memcache/apr_memcache.c
URL: http://svn.apache.org/viewcvs/apr/apr-util/trunk/memcache/apr_memcache.c?rev=329139&r1=329138&r2=329139&view=diff
==============================================================================
--- apr/apr-util/trunk/memcache/apr_memcache.c (original)
+++ apr/apr-util/trunk/memcache/apr_memcache.c Fri Oct 28 00:13:11 2005
@@ -24,7 +24,7 @@
 struct apr_memcache_conn_t
 {
     char *buffer;
-    apr_uint32_t blen;
+    apr_size_t blen;
     apr_pool_t *p;
     apr_socket_t *sock;
     apr_bucket_alloc_t *balloc;
@@ -437,7 +437,7 @@
   0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d,
 };
 
-APR_DECLARE(apr_uint32_t) apr_memcache_hash(const char *data, const apr_uint32_t data_len)
+APR_DECLARE(apr_uint32_t) apr_memcache_hash(const char *data, const apr_size_t data_len)
 {
     apr_uint32_t i;
     apr_uint32_t crc;



Mime
View raw message