Merge in all changes related to being able to read configuration files.
[awesomized/libmemcached] / libmemcached / hash.c
index dda303952a5c86c2e6cc76de52c5a440474795eb..abad4f5bf3bce3951ee0f019560a733addca00fa 100644 (file)
@@ -70,7 +70,7 @@ static inline uint32_t _generate_hash_wrapper(const memcached_st *ptr, const cha
   WATCHPOINT_ASSERT(memcached_server_count(ptr));
 
   if (memcached_server_count(ptr) == 1)
-    return 0;
+    return EXIT_SUCCESS;
 
   if (ptr->flags.hash_with_prefix_key)
   {
@@ -78,7 +78,7 @@ static inline uint32_t _generate_hash_wrapper(const memcached_st *ptr, const cha
     char temp[temp_length];
 
     if (temp_length > MEMCACHED_MAX_KEY -1)
-      return 0;
+      return EXIT_SUCCESS;
 
     strncpy(temp, ptr->prefix_key, ptr->prefix_key_length);
     strncpy(temp + ptr->prefix_key_length, key, key_length);