Remove memcached_do()
[awesomized/libmemcached] / example / memcached_light.c
index 8465ff287d5ace3291ccc3e44b36db364ab6242d..1827437857bdfd144705223bb5581f3a5e0d22bc 100644 (file)
 #include <string.h>
 #include <event.h>
 
-#include <libmemcached/protocol_handler.h>
-#include <libmemcached/byteorder.h>
-#include "storage.h"
-#include "memcached_light.h"
+#include <libmemcachedprotocol-0.0/handler.h>
+#include <libmemcached/close_socket.hpp>
+#include <example/byteorder.h>
+#include "example/storage.h"
+#include "example/memcached_light.h"
 
 extern memcached_binary_protocol_callback_st interface_v0_impl;
 extern memcached_binary_protocol_callback_st interface_v1_impl;
@@ -180,7 +181,7 @@ static int server_socket(const char *port)
     else
       perror("getaddrinfo()");
 
-    return EXIT_FAILURE;
+    return 0;
   }
 
   struct linger ling= {0, 0};