/*
- * $Id: fqdncache.cc,v 1.24 1996/10/10 22:20:28 wessels Exp $
+ * $Id: fqdncache.cc,v 1.25 1996/10/10 22:20:55 wessels Exp $
*
* DEBUG: section 35 FQDN Cache
* AUTHOR: Harvest Derived
list = xcalloc(meta_data.fqdncache_count, sizeof(fqdncache_entry *));
f = (fqdncache_entry *) hash_first(fqdn_table);
while (f && i < meta_data.fqdncache_count) {
- *(list + i) = f;
- i++;
- f = (fqdncache_entry *) hash_next(fqdn_table);
+ *(list + i) = f;
+ i++;
+ f = (fqdncache_entry *) hash_next(fqdn_table);
}
for (j = 0; j < i; j++) {
- f = *(list + j);
- for (k = 0; k < (int) f->name_count; k++)
- safe_free(f->names[k]);
- safe_free(f->name);
- safe_free(f->error_message);
- safe_free(f);
+ f = *(list + j);
+ for (k = 0; k < (int) f->name_count; k++)
+ safe_free(f->names[k]);
+ safe_free(f->name);
+ safe_free(f->error_message);
+ safe_free(f);
}
xfree(list);
hashFreeMemory(fqdn_table);
}
-
/*
- * $Id: icmp.cc,v 1.16 1996/10/10 22:20:28 wessels Exp $
+ * $Id: icmp.cc,v 1.17 1996/10/10 22:20:56 wessels Exp $
*
* DEBUG: section 37 ICMP Routines
* AUTHOR: Duane Wessels
icmpClose(void)
{
icmpQueueData *queue;
- debug(29,0,"Closing ICMP socket on FD %d\n", icmp_sock);
+ debug(29, 0, "Closing ICMP socket on FD %d\n", icmp_sock);
comm_close(icmp_sock);
comm_set_select_handler(icmp_sock,
COMM_SELECT_READ,
/*
- * $Id: ipcache.cc,v 1.69 1996/10/10 19:04:16 wessels Exp $
+ * $Id: ipcache.cc,v 1.70 1996/10/10 22:20:57 wessels Exp $
*
* DEBUG: section 14 IP Cache
* AUTHOR: Harvest Derived
list = xcalloc(meta_data.ipcache_count, sizeof(ipcache_entry *));
i = (ipcache_entry *) hash_first(ip_table);
while (i && k < meta_data.ipcache_count) {
- *(list + k) = i;
- k++;
- i = (ipcache_entry *) hash_next(ip_table);
+ *(list + k) = i;
+ k++;
+ i = (ipcache_entry *) hash_next(ip_table);
}
for (j = 0; j < k; j++) {
i = *(list + j);
- safe_free(i->addrs.in_addrs);
- safe_free(i->name);
- safe_free(i->error_message);
- safe_free(i);
+ safe_free(i->addrs.in_addrs);
+ safe_free(i->name);
+ safe_free(i->error_message);
+ safe_free(i);
}
xfree(list);
hashFreeMemory(ip_table);
/*
- * $Id: main.cc,v 1.90 1996/10/10 22:20:29 wessels Exp $
+ * $Id: main.cc,v 1.91 1996/10/10 22:20:58 wessels Exp $
*
* DEBUG: section 1 Startup and Main Loop
* AUTHOR: Harvest Derived
}
#if USE_ICMP
if (icmp_sock > -1)
- icmpClose();
+ icmpClose();
#endif
}
}
for (j = 0; j < i; j++) {
n = *(L1 + j);
- while ((x = n->hosts)) {
+ while ((x = n->hosts)) {
n->hosts = x->next;
safe_free(x);
- }
+ }
xfree(n);
}
xfree(L1);
/*
- * $Id: stat.cc,v 1.82 1996/10/10 18:48:51 wessels Exp $
+ * $Id: stat.cc,v 1.83 1996/10/10 22:21:00 wessels Exp $
*
* DEBUG: section 18 Cache Manager Statistics
* AUTHOR: Harvest Derived
meta_data.netdb_addrs * sizeof(netdbEntry) +
meta_data.netdb_hosts * sizeof(struct _net_db_name) +
#endif
- meta_data.misc;
+ meta_data.misc;
}
#ifdef UNUSED_CODE
"NetDB Host Entries",
meta_data.netdb_hosts,
(int) sizeof(struct _net_db_name),
- (int) (meta_data.netdb_hosts * sizeof(struct _net_db_name) >> 10));
+ (int) (meta_data.netdb_hosts * sizeof(struct _net_db_name) >> 10));
#endif
storeAppendPrintf(sentry, "{\t%-25.25s = %6d KB}\n",