summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/getnetbynis.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-12-06 00:12:31 +0000
committerjkh <jkh@FreeBSD.org>1996-12-06 00:12:31 +0000
commiteeb126378ebe691b733ace62bfea8d6edd75faa4 (patch)
tree5522d59cf7e6c76f12ed34e9050a032b2f7d356d /lib/libc/net/getnetbynis.c
parent421ae6a9985e6838a066e6664dec855cc52480e8 (diff)
downloadFreeBSD-src-eeb126378ebe691b733ace62bfea8d6edd75faa4.zip
FreeBSD-src-eeb126378ebe691b733ace62bfea8d6edd75faa4.tar.gz
I asked Bill Paul why _getnetbynis() was only being called with 2 parameters,
and he said: The 3rd agrument is new; looks like it was part of the upgrade to a new BIND with some IPv6 support. The third argument here should be AF_INET. In order for it to be anything else, I'd have to add new NIS functions to support IPv6 lookups. I don't even know what those look like yet. So there ya go, add AF_INET as the 3rd argument to the call. Submitted-by: wpaul
Diffstat (limited to 'lib/libc/net/getnetbynis.c')
-rw-r--r--lib/libc/net/getnetbynis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/net/getnetbynis.c b/lib/libc/net/getnetbynis.c
index 7c256e0..44f2066 100644
--- a/lib/libc/net/getnetbynis.c
+++ b/lib/libc/net/getnetbynis.c
@@ -24,8 +24,8 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)$Id: getnetbynis.c,v 1.5 1996/03/23 22:16:22 wpaul Exp $";
-static char rcsid[] = "$Id: getnetbynis.c,v 1.5 1996/03/23 22:16:22 wpaul Exp $";
+static char sccsid[] = "@(#)$Id: getnetbynis.c,v 1.6 1996/08/29 20:08:01 peter Exp $";
+static char rcsid[] = "$Id: getnetbynis.c,v 1.6 1996/08/29 20:08:01 peter Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -125,7 +125,7 @@ struct netent *
_getnetbynisname(name)
const char *name;
{
- return _getnetbynis(name, "networks.byname");
+ return _getnetbynis(name, "networks.byname", AF_INET);
}
struct netent *
OpenPOWER on IntegriCloud