Rollup merge.
[awesomized/libmemcached] / example / interface_v0.c
index 596313305fb5f055ea14706f3e4be393e47a4b79..3ca4daff1f722253c74b963c43e640ea73759923 100644 (file)
@@ -7,9 +7,6 @@
 #include "config.h"
 #include <assert.h>
 #include <sys/types.h>
-#include <sys/socket.h>
-#include <netdb.h>
-#include <netinet/tcp.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <fcntl.h>
@@ -521,10 +518,10 @@ static protocol_binary_response_status stat_command_handler(const void *cookie,
 }
 
 memcached_binary_protocol_callback_st interface_v0_impl= {
-  .interface_version= 0,
+  .interface_version= MEMCACHED_PROTOCOL_HANDLER_V0,
 #ifdef FUTURE
   /*
-  ** There is a number of bugs in the extra options for gcc causing 
+  ** There is a number of bugs in the extra options for gcc causing
   ** warning on these struct initializers. It hurts my heart to remove
   ** it so I'll just leave it in here so that we can enable it when
   ** we can drop support for the broken compilers