X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=example%2Finterface_v0.c;h=3ca4daff1f722253c74b963c43e640ea73759923;hb=87cd906b2b1a904062c0dbdb017029a3f3a33a5d;hp=85dd2c7d426dad28caafe73b5c2cdf0c3761ca34;hpb=46339bf905fc4f7ce4b0cc91f32a9f4ff2af2430;p=m6w6%2Flibmemcached diff --git a/example/interface_v0.c b/example/interface_v0.c index 85dd2c7d..3ca4daff 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 @@ -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 @@ -559,7 +556,7 @@ memcached_binary_protocol_callback_st interface_v0_impl= { #endif }; -void initialize_iterface_v0_handler(void) +void initialize_interface_v0_handler(void) { interface_v0_impl.interface.v0.comcode[PROTOCOL_BINARY_CMD_GET]= get_command_handler; interface_v0_impl.interface.v0.comcode[PROTOCOL_BINARY_CMD_SET]= set_command_handler;