X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=memcached%2Fhash.c;h=f7d21dd310c24da74a9a74163279af072b2077bb;hb=e50ced7764a1ddb80aba8f7c8851c4181a2cfc4e;hp=6c9b9b6aa5b9861e0fe207446fc0d89a003ef914;hpb=c47f06ddcf0d108912b7e242f7b4151fdede2e0a;p=m6w6%2Flibmemcached diff --git a/memcached/hash.c b/memcached/hash.c index 6c9b9b6a..f7d21dd3 100644 --- a/memcached/hash.c +++ b/memcached/hash.c @@ -178,8 +178,6 @@ 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 */ @@ -249,8 +247,6 @@ 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 */ @@ -293,8 +289,6 @@ uint32_t hash( case 1 : a+=k[0]; break; case 0 : return c; /* zero length strings require no mixing */ - default: - abort(); } }