Add test cases for add server for NULL cases.
[m6w6/libmemcached] / libmemcached / constants.h
index 165745e75af99b1aa4fd508fc098ac6bbfefaca3..e17e676ebebb31c58c238ebe63fe54cd077fdcc7 100644 (file)
@@ -155,11 +155,14 @@ typedef enum memcached_hash_t memcached_hash_t;
 #endif
 
 enum memcached_connection_t {
-  MEMCACHED_CONNECTION_UNKNOWN,
   MEMCACHED_CONNECTION_TCP,
   MEMCACHED_CONNECTION_UDP,
-  MEMCACHED_CONNECTION_UNIX_SOCKET,
-  MEMCACHED_CONNECTION_MAX
+  MEMCACHED_CONNECTION_UNIX_SOCKET
+};
+
+enum {
+  MEMCACHED_CONNECTION_UNKNOWN= 0,
+  MEMCACHED_CONNECTION_MAX= 0
 };
 
 #ifndef __cplusplus