]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
use hash4()
authorwessels <>
Fri, 25 Oct 1996 06:22:12 +0000 (06:22 +0000)
committerwessels <>
Fri, 25 Oct 1996 06:22:12 +0000 (06:22 +0000)
src/fqdncache.cc
src/ipcache.cc

index 0d50aa29ce9d69c4939fe66c84a8369182531089..e172608e6156bb10b55e68e8965204d229883022 100644 (file)
@@ -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 *
index ebf626d6d217adae5e3438744b0a6cbb789ac4f1..65b03e23971cd80ea8cafc81fd1eb96973cbc701 100644 (file)
@@ -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));