Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/lib/libc/net Pull up revision 1.62 via patch (requested...
details: https://anonhg.NetBSD.org/src/rev/98006db0b2d6
branches: netbsd-1-6
changeset: 531457:98006db0b2d6
user: tron <tron%NetBSD.org@localhost>
date: Sun Aug 22 14:28:03 2004 +0000
description:
Pull up revision 1.62 via patch (requested by itojun in ticket #1731):
now that e.f.f.3.ip6.arpa is ready, we no longer need to query ip6.int
diffstat:
lib/libc/net/gethnamaddr.c | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)
diffs (34 lines):
diff -r 84532405d190 -r 98006db0b2d6 lib/libc/net/gethnamaddr.c
--- a/lib/libc/net/gethnamaddr.c Fri Aug 13 04:42:23 2004 +0000
+++ b/lib/libc/net/gethnamaddr.c Sun Aug 22 14:28:03 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gethnamaddr.c,v 1.42.2.12 2003/10/11 23:24:59 tron Exp $ */
+/* $NetBSD: gethnamaddr.c,v 1.42.2.13 2004/08/22 14:28:03 tron Exp $ */
/*
* ++Copyright++ 1985, 1988, 1993
@@ -61,7 +61,7 @@
static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93";
static char rcsid[] = "Id: gethnamaddr.c,v 8.21 1997/06/01 20:34:37 vixie Exp ";
#else
-__RCSID("$NetBSD: gethnamaddr.c,v 1.42.2.12 2003/10/11 23:24:59 tron Exp $");
+__RCSID("$NetBSD: gethnamaddr.c,v 1.42.2.13 2004/08/22 14:28:03 tron Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -1229,15 +1229,6 @@
return NS_NOTFOUND;
}
n = res_query(qbuf, C_IN, T_PTR, buf->buf, sizeof(buf->buf));
- if (n < 0 && af == AF_INET6) {
- *qp = '\0';
- if (strlcat(qbuf, "ip6.int", sizeof(qbuf)) >= sizeof(qbuf)) {
- free(buf);
- h_errno = NETDB_INTERNAL;
- return NS_NOTFOUND;
- }
- n = res_query(qbuf, C_IN, T_PTR, buf->buf, sizeof(buf->buf));
- }
if (n < 0) {
free(buf);
dprintf("res_query failed (%d)\n", n);
Home |
Main Index |
Thread Index |
Old Index