Updating the get function in the C++ interface.
[awesomized/libmemcached] / tests / udp.c
index df73b2614cebd5a89b55f834736212a7b69e0d7c..4c7050e213846b6bd5eac0a465ea7902a998117f 100644 (file)
@@ -2,7 +2,7 @@
   Sample test application.
 */
 #include <assert.h>
-#include <memcached.h>
+#include <libmemcached/memcached.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #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[] ={