if (len == 0 || len > 240 || (*c != '\0' && *c != '\r' && iscntrl(*c)))
{
- return 0;
+ return EXIT_SUCCESS;
}
return len;
*/
static protocol_binary_response_status
ascii_version_response_handler(const void *cookie,
- const void *text,
- uint32_t textlen)
+ const void *text,
+ uint32_t textlen)
{
- memcached_protocol_client_st *client= (void*)cookie;
+ memcached_protocol_client_st *client= (memcached_protocol_client_st*)cookie;
spool_string(client, "VERSION ");
client->root->spool(client, text, textlen);
spool_string(client, "\r\n");
{
/* Keep on reading */
recover_tokenize_command(start, *end);
- return 1;
+ return EXIT_FAILURE;
}
void *data= (*end) + 1;
*end += nbytes + 2;
- return 0;
+ return EXIT_SUCCESS;
}
static int process_cas_command(memcached_protocol_client_st *client,