endhostent() and sethostent() should actaully do something now that

gethostent() has been restored to libc.  Reviewed by <christos>.
This commit is contained in:
ginsbach 2004-08-17 02:40:05 +00:00
parent 30ef75e3f4
commit ab52fcd2c6
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sethostent.c,v 1.13 2004/05/21 02:30:04 christos Exp $ */
/* $NetBSD: sethostent.c,v 1.14 2004/08/17 02:40:05 ginsbach Exp $ */
/*
* Copyright (c) 1985, 1993
@ -35,7 +35,7 @@
static char sccsid[] = "@(#)sethostent.c 8.1 (Berkeley) 6/4/93";
static char rcsid[] = "Id: sethostent.c,v 8.5 1996/09/28 06:51:07 vixie Exp ";
#else
__RCSID("$NetBSD: sethostent.c,v 1.13 2004/05/21 02:30:04 christos Exp $");
__RCSID("$NetBSD: sethostent.c,v 1.14 2004/08/17 02:40:05 ginsbach Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -51,9 +51,11 @@ __weak_alias(sethostent,_sethostent)
__weak_alias(endhostent,_endhostent)
#endif
void _endhtent __P((void));
#ifndef _REENTRANT
void res_close __P((void));
#endif
void _sethtent __P((int));
void
/*ARGSUSED*/
@ -66,6 +68,7 @@ sethostent(stayopen)
if (stayopen)
_res.options |= RES_STAYOPEN | RES_USEVC;
#endif
_sethtent(stayopen);
}
void
@ -75,4 +78,5 @@ endhostent()
_res.options &= ~(RES_STAYOPEN | RES_USEVC);
res_close();
#endif
_endhtent();
}