summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1996-08-30 01:17:47 +0000
committerPeter Wemm <peter@FreeBSD.org>1996-08-30 01:17:47 +0000
commitf1c72c4c70ed065af3b938e7f0dc948d4afb1867 (patch)
tree257b5a1d52a01c4b4c533444f0d6e7fc8130f821
parentaf91b5abda8b65c5626c9e6f5a5c0a4d43a5b89e (diff)
Notes
-rw-r--r--usr.sbin/ypserv/yp_dnslookup.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.sbin/ypserv/yp_dnslookup.c b/usr.sbin/ypserv/yp_dnslookup.c
index c578d6b4de64..9f77980b89d2 100644
--- a/usr.sbin/ypserv/yp_dnslookup.c
+++ b/usr.sbin/ypserv/yp_dnslookup.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: yp_dnslookup.c,v 1.2 1996/05/01 02:37:46 wpaul Exp $
+ * $Id: yp_dnslookup.c,v 1.2 1996/05/31 16:01:49 wpaul Exp $
*/
/*
@@ -54,12 +54,9 @@
#include "yp_extern.h"
#ifndef lint
-static const char rcsid[] = "$Id: yp_dnslookup.c,v 1.2 1996/05/01 02:37:46 wpaul Exp $";
+static const char rcsid[] = "$Id: yp_dnslookup.c,v 1.2 1996/05/31 16:01:49 wpaul Exp $";
#endif
-extern struct hostent *_gethostbydnsname __P(( char * ));
-extern struct hostent *_gethostbydnsaddr __P(( const char *, int, int ));
-
static char *parse(hp)
struct hostent *hp;
{
@@ -91,7 +88,7 @@ char *yp_dnsname(address)
if (strchr(address, '@'))
return (NULL);
- if ((hp = (struct hostent *)_gethostbydnsname(address)) == NULL)
+ if ((hp = (struct hostent *)_gethostbydnsname(address, AF_INET)) == NULL)
return (NULL);
return(parse(hp));