From 7550f5db2954fb489e61c1767674f3f2c0e5dd34 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 1 Jul 1997 16:56:31 +0000 Subject: Eliminate a GETHOSTBYNAME dependency. svn path=/trunk/; revision=1134 --- etrn.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'etrn.c') diff --git a/etrn.c b/etrn.c index 6b6df343..d831c29f 100644 --- a/etrn.c +++ b/etrn.c @@ -14,9 +14,6 @@ #include "smtp.h" #include "socket.h" -#ifdef HAVE_GETHOSTBYNAME -#include - static int etrn_ok (int sock, char *argbuf) /* parse command response */ { @@ -95,7 +92,7 @@ static int etrn_getrange(int sock, struct query *ctl, char *id, int *countp, if (hp == (struct hostent *) NULL) { /* exit with error message */ - error(5, h_errno, "gethostbyname"); + error(5, 0, "gethostbyname"); } /* here it is */ qname = hp->h_name; @@ -190,6 +187,4 @@ int doETRN (struct query *ctl) return(do_protocol(ctl, &etrn)); } -#endif /* HAVE_GETHOSTBYNAME */ - /* etrn.c ends here */ -- cgit v1.2.3