X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Futil%2Fpool.c;h=7879cc2312e6a4c8d321ca254998aa6e81fa9984;hb=8dbf5dfc11d59551dbe433dc45e8c1283cbd939a;hp=7cb25177677924607178c3a6102d6861ce0a5ab7;hpb=7c7750f02368b570353ea109f23a0ea26d226e02;p=m6w6%2Flibmemcached diff --git a/libmemcached/util/pool.c b/libmemcached/util/pool.c index 7cb25177..7879cc23 100644 --- a/libmemcached/util/pool.c +++ b/libmemcached/util/pool.c @@ -1,6 +1,17 @@ +/* LibMemcached + * Copyright (C) 2010 Brian Aker + * All rights reserved. + * + * Use and distribution licensed under the BSD license. See + * the COPYING file in the parent directory for full text. + * + * Summary: connects to a host, and makes sure it is alive. + * + */ + /* -*- Mode: C; tab-width: 2; c-basic-offset: 2; indent-tabs-mode: nil -*- */ #include "libmemcached/common.h" -#include "libmemcached/pool.h" +#include "libmemcached/memcached_util.h" #include #include @@ -57,7 +68,7 @@ static int grow_pool(memcached_pool_st* pool) pool->mmc[++pool->firstfree] = obj; pool->current_size++; - return 0; + return EXIT_SUCCESS; } memcached_pool_st *memcached_pool_create(memcached_st* mmc,