hash_link does not need to be modified to fetch its key
value. This allows display and fetch of hash keys for
objects which are const.
SQUIDCEXTERN void hashFreeItems(hash_table *, HASHFREE *);
SQUIDCEXTERN HASHHASH hash_string;
SQUIDCEXTERN HASHHASH hash4;
-SQUIDCEXTERN const char *hashKeyStr(hash_link *);
+SQUIDCEXTERN const char *hashKeyStr(const hash_link *);
/*
* Here are some good prime number choices. It's important not to
* return the key of a hash_link as a const string
*/
const char *
-hashKeyStr(hash_link * hl)
+hashKeyStr(const hash_link * hl)
{
return (const char *) hl->key;
}