From: Brian Aker Date: Tue, 19 Aug 2008 18:07:14 +0000 (-0700) Subject: Fixed udp warnings. X-Git-Tag: _23~8 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=bc1d860b616cf9f34244377808a75c638d435a5e;p=m6w6%2Flibmemcached Fixed udp warnings. --- diff --git a/clients/generator.c b/clients/generator.c index 6a3b5103..c9750231 100644 --- a/clients/generator.c +++ b/clients/generator.c @@ -1,5 +1,6 @@ #include #include +#include #include #include "generator.h" diff --git a/clients/generator.h b/clients/generator.h index 16509364..4897e943 100644 --- a/clients/generator.h +++ b/clients/generator.h @@ -14,7 +14,7 @@ struct pairs_st { size_t value_length; }; -pairs_st *pairs_generate(uint32_t number_of, size_t length); +pairs_st *pairs_generate(uint64_t number_of, size_t value_length); void pairs_free(pairs_st *pairs); #endif diff --git a/tests/function.c b/tests/function.c index 6bd6bbf9..dfb47b4e 100644 --- a/tests/function.c +++ b/tests/function.c @@ -1306,8 +1306,8 @@ test_return callback_test(memcached_st *memc) /* We don't test the behavior itself, we test the switches */ test_return behavior_test(memcached_st *memc) { - unsigned long long value; - unsigned int set= 1; + uint64_t value; + uint32_t set= 1; memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_NO_BLOCK, set); value= memcached_behavior_get(memc, MEMCACHED_BEHAVIOR_NO_BLOCK); diff --git a/tests/udp.c b/tests/udp.c index b6ad2065..4c7050e2 100644 --- a/tests/udp.c +++ b/tests/udp.c @@ -14,7 +14,12 @@ #include "test.h" #include "server.h" -uint8_t set_test(memcached_st *memc) +/* Prototypes */ +test_return set_test(memcached_st *memc); +void *world_create(void); +void world_destroy(void *p); + +test_return set_test(memcached_st *memc) { memcached_return rc; char *key= "foo"; @@ -25,7 +30,7 @@ uint8_t set_test(memcached_st *memc) (time_t)0, (uint32_t)0); assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED); - return 0; + return TEST_SUCCESS; } test_st tests[] ={