projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge in all changes related to being able to read configuration files.
[awesomized/libmemcached]
/
libmemcached
/
protocol
/
ascii_handler.c
diff --git
a/libmemcached/protocol/ascii_handler.c
b/libmemcached/protocol/ascii_handler.c
index 87a0edb1b971c7de14d9f756a183329d11a78635..802b0859653351647b2ab2284ea21b1a1b3296c4 100644
(file)
--- 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)))
{
if (len == 0 || len > 240 || (*c != '\0' && *c != '\r' && iscntrl(*c)))
{
- return
0
;
+ return
EXIT_SUCCESS
;
}
return len;
}
return len;
@@
-92,10
+92,10
@@
static void send_command_usage(memcached_protocol_client_st *client)
*/
static protocol_binary_response_status
ascii_version_response_handler(const void *cookie,
*/
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");
spool_string(client, "VERSION ");
client->root->spool(client, text, textlen);
spool_string(client, "\r\n");
@@
-558,7
+558,7
@@
static inline int process_storage_command(memcached_protocol_client_st *client,
{
/* Keep on reading */
recover_tokenize_command(start, *end);
{
/* Keep on reading */
recover_tokenize_command(start, *end);
- return
1
;
+ return
EXIT_FAILURE
;
}
void *data= (*end) + 1;
}
void *data= (*end) + 1;
@@
-658,7
+658,7
@@
static inline int process_storage_command(memcached_protocol_client_st *client,
*end += nbytes + 2;
*end += nbytes + 2;
- return
0
;
+ return
EXIT_SUCCESS
;
}
static int process_cas_command(memcached_protocol_client_st *client,
}
static int process_cas_command(memcached_protocol_client_st *client,