projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
c++: fix -Wenum-in-bool-context
[awesomized/libmemcached]
/
libmemcached-1.0
/
return.h
diff --git
a/libmemcached-1.0/return.h
b/libmemcached-1.0/return.h
index 28b4a97d3f121adc6873f58a76a691e42ff6a585..781603b86e84ec8c8ac97983bba1d7e1e14ba762 100644
(file)
--- a/
libmemcached-1.0/return.h
+++ b/
libmemcached-1.0/return.h
@@
-61,12
+61,21
@@
static inline bool memcached_failed(memcached_return_t rc)
static inline bool memcached_fatal(memcached_return_t rc)
{
static inline bool memcached_fatal(memcached_return_t rc)
{
- return (rc != MEMCACHED_SUCCESS &&
+ return (
+ rc != MEMCACHED_BUFFERED &&
+ rc != MEMCACHED_CLIENT_ERROR &&
+ rc != MEMCACHED_DATA_EXISTS &&
+ rc != MEMCACHED_DELETED &&
+ rc != MEMCACHED_E2BIG &&
rc != MEMCACHED_END &&
rc != MEMCACHED_END &&
- rc != MEMCACHED_STORED &&
+ rc != MEMCACHED_ITEM &&
+ rc != MEMCACHED_ERROR &&
+ rc != MEMCACHED_NOTFOUND &&
+ rc != MEMCACHED_NOTSTORED &&
+ rc != MEMCACHED_SERVER_MEMORY_ALLOCATION_FAILURE &&
rc != MEMCACHED_STAT &&
rc != MEMCACHED_STAT &&
- rc != MEMCACHED_
DELETED &&
- rc != MEMCACHED_
BUFFERED &&
+ rc != MEMCACHED_
STORED &&
+ rc != MEMCACHED_
SUCCESS &&
rc != MEMCACHED_VALUE);
}
rc != MEMCACHED_VALUE);
}