Check for local memcached, and then add PWD
[m6w6/libmemcached] / memcached / hash.c
index f7d21dd310c24da74a9a74163279af072b2077bb..6c9b9b6aa5b9861e0fe207446fc0d89a003ef914 100644 (file)
@@ -178,6 +178,8 @@ uint32_t hash(
     case 2 : a+=k[0]&0xffff; break;
     case 1 : a+=k[0]&0xff; break;
     case 0 : return c;  /* zero length strings require no mixing */
+    default:
+             abort();
     }
 
 #else /* make valgrind happy */
@@ -247,6 +249,8 @@ uint32_t hash(
     case 1 : a+=k8[0];
              break;
     case 0 : return c;  /* zero length strings require no mixing */
+    default:
+             abort();
     }
 
   } else {                        /* need to read the key one byte at a time */
@@ -289,6 +293,8 @@ uint32_t hash(
     case 1 : a+=k[0];
              break;
     case 0 : return c;  /* zero length strings require no mixing */
+    default:
+             abort();
     }
   }