X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fudp.c;h=dc33ae67360821c9af86f7fe742e417efe6749bc;hb=b1f4764b7718276d8ef176d5b3238718a782e839;hp=df73b2614cebd5a89b55f834736212a7b69e0d7c;hpb=51aa1233e4981967f06dd3432cd3a6ed83a35607;p=awesomized%2Flibmemcached diff --git a/tests/udp.c b/tests/udp.c index df73b261..dc33ae67 100644 --- a/tests/udp.c +++ b/tests/udp.c @@ -2,7 +2,7 @@ Sample test application. */ #include -#include +#include #include #include #include @@ -14,18 +14,23 @@ #include "test.h" #include "server.h" -uint8_t set_test(memcached_st *memc) +/* Prototypes */ +test_return_t set_test(memcached_st *memc); +void *world_create(void); +void world_destroy(void *p); + +test_return_t set_test(memcached_st *memc) { memcached_return rc; - char *key= "foo"; - char *value= "when we sanitize"; + const char *key= "foo"; + const char *value= "when we sanitize"; rc= memcached_set(memc, key, strlen(key), value, strlen(value), (time_t)0, (uint32_t)0); assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED); - return 0; + return TEST_SUCCESS; } test_st tests[] ={