projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Missing hosts file.
[m6w6/libmemcached]
/
lib
/
memcached_response.c
diff --git
a/lib/memcached_response.c
b/lib/memcached_response.c
index ce129aeed23ec125d121ee98270f6673e6747a3c..cb74be0a911c6f1fe9ba383299de8c5f668ca199 100644
(file)
--- a/
lib/memcached_response.c
+++ b/
lib/memcached_response.c
@@
-5,7
+5,7
@@
from an issued command.
*/
from an issued command.
*/
-#include
<memcached.h>
+#include
"common.h"
memcached_return memcached_response(memcached_st *ptr,
char *buffer, size_t buffer_length,
memcached_return memcached_response(memcached_st *ptr,
char *buffer, size_t buffer_length,
@@
-48,7
+48,7
@@
memcached_return memcached_response(memcached_st *ptr,
return MEMCACHED_UNKNOWN_READ_FAILURE;
}
case 'D': /* DELETED */
return MEMCACHED_UNKNOWN_READ_FAILURE;
}
case 'D': /* DELETED */
- return MEMCACHED_
SUCCESS
;
+ return MEMCACHED_
DELETED
;
case 'N': /* NOT_FOUND */
{
if (buffer[4] == 'F')
case 'N': /* NOT_FOUND */
{
if (buffer[4] == 'F')
@@
-61,7
+61,7
@@
memcached_return memcached_response(memcached_st *ptr,
case 'E': /* PROTOCOL ERROR or END */
{
if (buffer[1] == 'N')
case 'E': /* PROTOCOL ERROR or END */
{
if (buffer[1] == 'N')
- return MEMCACHED_
NOTFOU
ND;
+ return MEMCACHED_
E
ND;
else if (buffer[1] == 'R')
return MEMCACHED_PROTOCOL_ERROR;
else
else if (buffer[1] == 'R')
return MEMCACHED_PROTOCOL_ERROR;
else