summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcp/common/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/dhcp/common/tree.c')
-rw-r--r--usr.sbin/dhcp/common/tree.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/usr.sbin/dhcp/common/tree.c b/usr.sbin/dhcp/common/tree.c
index aeb48d13026..0fdc4e53fba 100644
--- a/usr.sbin/dhcp/common/tree.c
+++ b/usr.sbin/dhcp/common/tree.c
@@ -40,11 +40,6 @@
* Enterprises, see ``http://www.vix.com''.
*/
-#ifndef lint
-static char copyright[] =
-"$Id: tree.c,v 1.1 1998/08/18 03:43:27 deraadt Exp $ Copyright (c) 1995, 1996, 1997 The Internet Software Consortium. All rights reserved.\n";
-#endif /* not lint */
-
#include "dhcpd.h"
static TIME tree_evaluate_recurse PROTO ((int *, unsigned char **, int *,
@@ -313,13 +308,10 @@ static TIME do_host_lookup (bufix, bufp, bufcount, dns)
/* Otherwise, look it up... */
h = gethostbyname (dns -> hostname);
- if (!h) {
-#ifndef NO_H_ERRNO
+ if (h != NULL) {
switch (h_errno) {
case HOST_NOT_FOUND:
-#endif
warn ("%s: host unknown.", dns -> hostname);
-#ifndef NO_H_ERRNO
break;
case TRY_AGAIN:
warn ("%s: temporary name server failure",
@@ -332,8 +324,6 @@ static TIME do_host_lookup (bufix, bufp, bufcount, dns)
warn ("%s: no A record associated with address",
dns -> hostname);
}
-#endif /* !NO_H_ERRNO */
-
/* Okay to try again after a minute. */
return cur_time + 60;
}