Remove the struct hash_entry and define a new type for hash values. Most likely we will only need one member in this struct. and instead of just using unsinged int. let's name a new type for clarity.
both dlhist.c and proc-cache.c uses similar hash table code. factor this out into a helper interface.