X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fprotocol%2Fascii_handler.c;h=802b0859653351647b2ab2284ea21b1a1b3296c4;hb=f0d3a824ed9acb9f6e3080683abe2bcc8b0cd6bd;hp=465b73969766432963007dfabe7ea9e4e42b2c43;hpb=4bd3cc36a7225286b376c2e1dad9a9ce667cd1d1;p=awesomized%2Flibmemcached diff --git a/libmemcached/protocol/ascii_handler.c b/libmemcached/protocol/ascii_handler.c index 465b7396..802b0859 100644 --- a/libmemcached/protocol/ascii_handler.c +++ b/libmemcached/protocol/ascii_handler.c @@ -34,7 +34,7 @@ static uint16_t parse_ascii_key(char **start) if (len == 0 || len > 240 || (*c != '\0' && *c != '\r' && iscntrl(*c))) { - return 0; + return EXIT_SUCCESS; } return len; @@ -558,7 +558,7 @@ static inline int process_storage_command(memcached_protocol_client_st *client, { /* Keep on reading */ recover_tokenize_command(start, *end); - return 1; + return EXIT_FAILURE; } void *data= (*end) + 1; @@ -658,7 +658,7 @@ static inline int process_storage_command(memcached_protocol_client_st *client, *end += nbytes + 2; - return 0; + return EXIT_SUCCESS; } static int process_cas_command(memcached_protocol_client_st *client,