/*
- * $Id: dnsserver.cc,v 1.64 2003/02/21 22:50:08 robertc Exp $
+ * $Id: dnsserver.cc,v 1.65 2004/10/15 21:12:47 hno Exp $
*
* DEBUG: section 0 DNS Resolver
* AUTHOR: Harvest Derived
my_h_msgs(int x)
{
if (x == HOST_NOT_FOUND)
- return "Host not found (authoritative)";
+ return (char *)"Host not found (authoritative)";
else if (x == TRY_AGAIN)
- return "Host not found (non-authoritative)";
+ return (char *)"Host not found (non-authoritative)";
else if (x == NO_RECOVERY)
- return "Non recoverable errors";
+ return (char *)"Non recoverable errors";
else if (x == NO_DATA || x == NO_ADDRESS)
- return "Valid name, no data record of requested type";
+ return (char *)"Valid name, no data record of requested type";
else
- return "Unknown DNS problem";
+ return (char *)"Unknown DNS problem";
}
#define REQ_SZ 512
/*
- * $Id: ipcache.cc,v 1.244 2004/04/10 13:10:17 hno Exp $
+ * $Id: ipcache.cc,v 1.245 2004/10/15 21:12:47 hno Exp $
*
* DEBUG: section 14 IP Cache
* AUTHOR: Harvest Derived
if (ipcount > 0) {
int j, k;
- i->addrs.in_addrs = xcalloc(ipcount, sizeof(struct in_addr));
- i->addrs.bad_mask = xcalloc(ipcount, sizeof(unsigned char));
+ i->addrs.in_addrs = (struct in_addr *)xcalloc(ipcount, sizeof(struct in_addr));
+ i->addrs.bad_mask = (unsigned char *)xcalloc(ipcount, sizeof(unsigned char));
for (j = 0, k = 0; k < ipcount; k++) {
if (safe_inet_addr(A[k], &i->addrs.in_addrs[j]))