libtest: fix #40 (use nullptr instead of NULL)
[awesomized/libmemcached] / libmemcached-1.0 / return.h
index 65dc63af5eb02cb7783200287f9cb5316dc06a86..e2b4104cda6c526249cb88abab790e35392bd611 100644 (file)
@@ -50,19 +50,22 @@ static inline bool memcached_success(memcached_return_t rc)
 
 static inline bool memcached_failed(memcached_return_t rc)
 {
-  return (rc != MEMCACHED_SUCCESS && 
+  return (rc != MEMCACHED_AUTH_CONTINUE &&
+          rc != MEMCACHED_BUFFERED &&
+          rc != MEMCACHED_DELETED &&
           rc != MEMCACHED_END && 
+          rc != MEMCACHED_ITEM &&
+          rc != MEMCACHED_STAT &&
           rc != MEMCACHED_STORED && 
-          rc != MEMCACHED_STAT && 
-          rc != MEMCACHED_DELETED &&
-          rc != MEMCACHED_BUFFERED &&
+          rc != MEMCACHED_SUCCESS &&
           rc != MEMCACHED_VALUE);
 }
 
 static inline bool memcached_fatal(memcached_return_t rc)
 {
-  return (
+  return (rc != MEMCACHED_AUTH_CONTINUE &&
           rc != MEMCACHED_BUFFERED &&
+          rc != MEMCACHED_CLIENT_ERROR &&
           rc != MEMCACHED_DATA_EXISTS &&
           rc != MEMCACHED_DELETED &&
           rc != MEMCACHED_E2BIG &&