/*
- * $Id: ipcache.cc,v 1.33 1996/07/18 20:27:04 wessels Exp $
+ * $Id: ipcache.cc,v 1.34 1996/07/19 17:34:45 wessels Exp $
*
* DEBUG: section 14 IP Cache
* AUTHOR: Harvest Derived
while ((addr_count < 255) && *(hp->h_addr_list + addr_count))
++addr_count;
- i->addr_count = addr_count;
+ i->addr_count = (unsigned char) addr_count;
/* count for Alias */
alias_count = 0;
while ((alias_count < 255) && hp->h_aliases[alias_count])
++alias_count;
- i->alias_count = alias_count;
+ i->alias_count = (unsigned char) alias_count;
/* copy ip addresses information */
i->entry.h_addr_list = xcalloc(addr_count + 1, sizeof(char *));
token = strtok(tmp_ptr, w_space);
tmp_ptr = NULL;
token = strtok(tmp_ptr, w_space);
- i->addr_count = ipcount = atoi(token);
+ ipcount = atoi(token);
+ i->addr_count = (unsigned char) ipcount;
if (ipcount == 0) {
i->entry.h_addr_list = NULL;
token = strtok(tmp_ptr, w_space);
tmp_ptr = NULL;
token = strtok(tmp_ptr, w_space);
- i->alias_count = aliascount = atoi(token);
+ aliascount = atoi(token);
+ i->alias_count = (unsigned char) aliascount;
if (aliascount == 0) {
i->entry.h_aliases = NULL;
i->name,
ipcache_status_char[i->status],
ttl,
- i->addr_count);
+ (int) i->addr_count);
for (k = 0; k < (int) i->addr_count; k++) {
struct in_addr addr;
xmemcpy(&addr, *(i->entry.h_addr_list + k), i->entry.h_length);
/*
- * $Id: neighbors.cc,v 1.31 1996/07/18 20:27:06 wessels Exp $
+ * $Id: neighbors.cc,v 1.32 1996/07/19 17:35:23 wessels Exp $
*
* DEBUG: section 15 Neighbor Routines
* AUTHOR: Harvest Derived
static struct neighbor_cf *Neighbor_cf = NULL;
static icp_common_t echo_hdr;
static u_short echo_port;
-static struct in_addr any_addr;
FILE *cache_hierarchy_log = NULL;
debug(15, 6, "neighborsUdpAck: opcode %d '%s'\n",
(int) header->opcode, url);
- if (header->opcode > ICP_OP_END)
+ if ((icp_opcode) header->opcode > ICP_OP_END)
return;
if (mem == NULL) {
debug(15, 1, "Ignoring ICP reply for missing mem_obj: %s\n", url);