/*
- * $Id: acl.cc,v 1.172 1998/07/22 20:36:57 wessels Exp $
+ * $Id: acl.cc,v 1.173 1998/07/23 19:57:47 wessels Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
hashFreeItems(p->hash, aclFreeProxyAuthUser);
hashFreeMemory(p->hash);
}
- p->hash = hash_create(urlcmp, 7921, hash_string);
+ p->hash = hash_create((HASHCMP*) strcmp, 7921, hash_string);
assert(NULL != p->hash);
passwords = xmalloc((size_t) buf.st_size + 2);
f = fopen(p->filename, "r");
/*
- * $Id: fqdncache.cc,v 1.108 1998/07/22 20:37:21 wessels Exp $
+ * $Id: fqdncache.cc,v 1.109 1998/07/23 19:57:49 wessels Exp $
*
* DEBUG: section 35 FQDN Cache
* AUTHOR: Harvest Derived
fqdncache_low = (long) (((float) MAX_FQDN *
(float) FQDN_LOW_WATER) / (float) 100);
n = hashPrime(fqdncache_high / 4);
- fqdn_table = hash_create(urlcmp, n, hash4);
+ fqdn_table = hash_create((HASHCMP*) strcmp, n, hash4);
cachemgrRegister("fqdncache",
"FQDN Cache Stats and Contents",
fqdnStats, 0, 1);
/*
- * $Id: ipcache.cc,v 1.194 1998/07/22 20:37:32 wessels Exp $
+ * $Id: ipcache.cc,v 1.195 1998/07/23 19:57:50 wessels Exp $
*
* DEBUG: section 14 IP Cache
* AUTHOR: Harvest Derived
ipcache_low = (long) (((float) Config.ipcache.size *
(float) Config.ipcache.low) / (float) 100);
n = hashPrime(ipcache_high / 4);
- ip_table = hash_create(urlcmp, n, hash4);
+ ip_table = hash_create((HASHCMP*) strcmp, n, hash4);
cachemgrRegister("ipcache",
"IP Cache Stats and Contents",
stat_ipcache_get, 0, 1);
/*
- * $Id: protos.h,v 1.240 1998/07/22 21:24:41 wessels Exp $
+ * $Id: protos.h,v 1.241 1998/07/23 19:57:52 wessels Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
STCB * callback,
void *data);
extern int storePendingNClients(const StoreEntry *);
-extern HASHCMP urlcmp;
extern EVH storeMaintainSwapSpace;
extern void storeExpireNow(StoreEntry *);
extern void storeReleaseRequest(StoreEntry *);
/*
- * $Id: store.cc,v 1.432 1998/07/22 22:25:18 wessels Exp $
+ * $Id: store.cc,v 1.433 1998/07/23 19:57:54 wessels Exp $
*
* DEBUG: section 20 Storage Manager
* AUTHOR: Harvest Derived
store_pages_low = store_mem_low / SM_PAGE_SIZE;
}
-int
-urlcmp(const void *url1, const void *url2)
-{
- assert(url1 && url2);
- return (strcmp(url1, url2));
-}
-
static int
storeKeepInMemory(const StoreEntry * e)
{