-#include "common.h"
+#include "libmemcached/common.h"
#include "libmemcached/memcached_pool.h"
+
+#include <errno.h>
#include <pthread.h>
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)
/* 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;
}