Fix regression bug #392807, --with-memcached doesn't work
[m6w6/libmemcached] / libmemcachedutil / memcached_pool.c
index 766375f1bc2b84472e3ffddd74f541b3803ed262..a1fc8c30ee3dbafac00da6471341763ac8cb9c75 100644 (file)
@@ -1,4 +1,4 @@
-#include "common.h"
+#include "libmemcached/common.h"
 #include "libmemcached/memcached_pool.h"
 #include <pthread.h>
 
@@ -9,8 +9,8 @@ struct memcached_pool_st
   memcached_st *master;
   memcached_st **mmc;
   int firstfree;
-  int size;
-  int current_size;
+  uint32_t size;
+  uint32_t current_size;
 };
 
 static memcached_return mutex_enter(pthread_mutex_t *mutex) 
@@ -79,7 +79,7 @@ memcached_pool_st *memcached_pool_create(memcached_st* mmc,
     /* Try to create the initial size of the pool. An allocation failure at
      * this time is not fatal..
      */
-    for (int ii=0; ii < initial; ++ii)
+    for (unsigned int ii=0; ii < initial; ++ii)
       if (grow_pool(ret) == -1)
         break;
   }