From: wessels <> Date: Fri, 25 Oct 1996 06:22:12 +0000 (+0000) Subject: use hash4() X-Git-Tag: SQUID_3_0_PRE1~5590 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b50df4bafb01ff751d756899f05b46af8d7696d;p=thirdparty%2Fsquid.git use hash4() --- diff --git a/src/fqdncache.cc b/src/fqdncache.cc index 0d50aa29ce..e172608e61 100644 --- a/src/fqdncache.cc +++ b/src/fqdncache.cc @@ -1,6 +1,6 @@ /* - * $Id: fqdncache.cc,v 1.29 1996/10/24 06:12:45 wessels Exp $ + * $Id: fqdncache.cc,v 1.30 1996/10/25 00:22:12 wessels Exp $ * * DEBUG: section 35 FQDN Cache * AUTHOR: Harvest Derived @@ -690,7 +690,7 @@ fqdncache_init(void) debug(35, 3, "Initializing FQDN Cache...\n"); memset(&FqdncacheStats, '\0', sizeof(FqdncacheStats)); /* small hash table */ - fqdn_table = hash_create(urlcmp, 229, hash_string); + fqdn_table = hash_create(urlcmp, 229, hash4); fqdncache_high = (long) (((float) MAX_FQDN * (float) FQDN_HIGH_WATER) / (float) 100); fqdncache_low = (long) (((float) MAX_FQDN * diff --git a/src/ipcache.cc b/src/ipcache.cc index ebf626d6d2..65b03e2397 100644 --- a/src/ipcache.cc +++ b/src/ipcache.cc @@ -1,5 +1,5 @@ /* - * $Id: ipcache.cc,v 1.76 1996/10/24 05:07:21 wessels Exp $ + * $Id: ipcache.cc,v 1.77 1996/10/25 00:22:13 wessels Exp $ * * DEBUG: section 14 IP Cache * AUTHOR: Harvest Derived @@ -740,7 +740,7 @@ ipcache_init(void) debug(14, 1, "Successful DNS name lookup tests...\n"); } - ip_table = hash_create(urlcmp, 229, hash_string); /* small hash table */ + ip_table = hash_create(urlcmp, 229, hash4); /* small hash table */ memset(&static_addrs, '\0', sizeof(ipcache_addrs)); static_addrs.in_addrs = xcalloc(1, sizeof(struct in_addr));