Fix return type from test functions (should be TEST_SUCCESS and not 0)
[awesomized/libmemcached] / example / interface_v0.c
index 1fb5a0a998d04acc946fe89602db65ed59657eab..041fe31e9ec767a5332e6e5c757c9294e69c9afa 100644 (file)
@@ -4,6 +4,7 @@
  * in the protocol library. You might want to have your copy of the protocol
  * specification next to your coffee ;-)
  */
+#include "config.h"
 #include <assert.h>
 #include <sys/types.h>
 #include <sys/socket.h>
@@ -518,7 +519,7 @@ static protocol_binary_response_status stat_command_handler(const void *cookie,
   return response_handler(cookie, header, (void*)&response);
 }
 
-struct memcached_binary_protocol_callback_st interface_v0_impl= {
+memcached_binary_protocol_callback_st interface_v0_impl= {
   .interface_version= 0,
   .interface.v0.comcode[PROTOCOL_BINARY_CMD_GET]= get_command_handler,
   .interface.v0.comcode[PROTOCOL_BINARY_CMD_SET]= set_command_handler,