X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=example%2Finterface_v0.c;h=74a98eaf896867d9aa73edba673ea5bdabae5855;hb=e8b6a3ed21315eccd4123c6eb4124fc9fbdacd36;hp=596313305fb5f055ea14706f3e4be393e47a4b79;hpb=24353992d6086a53123cc6a42fd41b982acb0952;p=m6w6%2Flibmemcached diff --git a/example/interface_v0.c b/example/interface_v0.c index 59631330..74a98eaf 100644 --- a/example/interface_v0.c +++ b/example/interface_v0.c @@ -7,9 +7,6 @@ #include "config.h" #include #include -#include -#include -#include #include #include #include @@ -55,7 +52,7 @@ static protocol_binary_response_status quit_command_handler(const void *cookie, response_handler(cookie, header, (void*)&response); /* I need a better way to signal to close the connection */ - return PROTOCOL_BINARY_RESPONSE_EIO; + return PROTOCOL_BINARY_RESPONSE_EINTERNAL; } static protocol_binary_response_status get_command_handler(const void *cookie, @@ -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