projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge of cppccheck fixes.
[awesomized/libmemcached]
/
memcached
/
hash.c
diff --git
a/memcached/hash.c
b/memcached/hash.c
index f7d21dd310c24da74a9a74163279af072b2077bb..6c9b9b6aa5b9861e0fe207446fc0d89a003ef914 100644
(file)
--- a/
memcached/hash.c
+++ b/
memcached/hash.c
@@
-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 */
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 */
}
#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 */
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 */
}
} 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 */
case 1 : a+=k[0];
break;
case 0 : return c; /* zero length strings require no mixing */
+ default:
+ abort();
}
}
}
}