-static int voidp_hashcode(void *key) {
- unsigned char *p = (unsigned char *) key;
- int value = 5381;
- int i = 0;
- for ( ; i < sizeof( ipslot ); i++ ) {
- value += ( value << 5 ) + *(p++);
- }
- return value;
+static unsigned long voidp_hashcode(void *key) {
+ return hashvector_hashcode( key, sizeof( ipslot ) );