#include <libmemcached/protocol_handler.h>
#include <libmemcached/byteorder.h>
#include "storage.h"
+#include "memcached_light.h"
extern memcached_binary_protocol_callback_st interface_v0_impl;
extern memcached_binary_protocol_callback_st interface_v1_impl;
int cmd;
memcached_binary_protocol_callback_st *interface= &interface_v0_impl;
+ /*
+ * We need to initialize the handlers manually due to a bug in the
+ * warnings generated by struct initialization in gcc (all the way up to 4.4)
+ */
+ initialize_interface_v0_handler();
+
while ((cmd= getopt(argc, argv, "v1p:?")) != EOF)
{
switch (cmd) {
fds[max_poll].events= POLLIN;
fds[max_poll].revents= 0;
fds[max_poll].fd= server_sockets[max_poll];
- ++max_poll;
}
while (true)