/*
- * $Id: fqdncache.cc,v 1.99 1998/04/22 01:40:16 wessels Exp $
+ * $Id: fqdncache.cc,v 1.100 1998/05/13 21:24:46 wessels Exp $
*
* DEBUG: section 35 FQDN Cache
* AUTHOR: Harvest Derived
assert(f->status != FQDN_PENDING);
assert(f->status != FQDN_DISPATCHED);
assert(f->pending_head == NULL);
- if (hash_remove_link(fqdn_table, (hash_link *) f)) {
- debug(35, 0) ("fqdncache_release: hash_remove_link() failed for '%s'\n",
- f->name);
- return;
- }
+ hash_remove_link(fqdn_table, (hash_link *) f);
if (f->status == FQDN_CACHED) {
for (k = 0; k < (int) f->name_count; k++)
safe_free(f->names[k]);
debug_trap("fqdncacheChangeKey: f != table_entry!");
return;
}
- if (hash_remove_link(fqdn_table, table_entry)) {
- debug_trap("fqdncacheChangeKey: hash_remove_link() failed\n");
- return;
- }
+ hash_remove_link(fqdn_table, table_entry);
snprintf(new_key, 256, "%d/", ++index);
strncat(new_key, f->name, 128);
debug(14, 1) ("fqdncacheChangeKey: from '%s' to '%s'\n", f->name, new_key);
/*
- * $Id: ipcache.cc,v 1.183 1998/05/08 23:29:27 wessels Exp $
+ * $Id: ipcache.cc,v 1.184 1998/05/13 21:24:47 wessels Exp $
*
* DEBUG: section 14 IP Cache
* AUTHOR: Harvest Derived
IpcacheStats.release_locked++;
return;
}
- if (hash_remove_link(ip_table, table_entry)) {
- debug(14, 0) ("ipcache_release: hash_remove_link() failed for '%s'\n",
- i->name);
- return;
- }
+ hash_remove_link(ip_table, table_entry);
dlinkDelete(&i->lru, &lru_list);
if (i->status == IP_CACHED) {
safe_free(i->addrs.in_addrs);
return;
}
assert(i == (ipcache_entry *) table_entry);
- if (hash_remove_link(ip_table, table_entry)) {
- debug_trap("ipcacheChangeKey: hash_remove_link() failed\n");
- return;
- }
+ hash_remove_link(ip_table, table_entry);
snprintf(new_key, 256, "%d/", ++index);
strncat(new_key, i->name, 128);
debug(14, 1) ("ipcacheChangeKey: from '%s' to '%s'\n", i->name, new_key);
extern hash_table *hash_create(HASHCMP *, int, HASHHASH *);
extern void hash_join(hash_table *, hash_link *);
-extern int hash_remove_link(hash_table *, hash_link *);
+extern void hash_remove_link(hash_table *, hash_link *);
extern int hashPrime(int n);
extern void *hash_lookup(hash_table *, const void *);
extern void *hash_first(hash_table *);