Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net fix hardcoded T_A.
details: https://anonhg.NetBSD.org/src/rev/e81a6cfe69b5
branches: trunk
changeset: 474204:e81a6cfe69b5
user: itojun <itojun%NetBSD.org@localhost>
date: Thu Jul 01 16:43:18 1999 +0000
description:
fix hardcoded T_A.
this fixes gethostbyname2(host, AF_INET6) to actually work.
diffstat:
lib/libc/net/gethnamaddr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r fdb8a08c5782 -r e81a6cfe69b5 lib/libc/net/gethnamaddr.c
--- a/lib/libc/net/gethnamaddr.c Thu Jul 01 13:19:20 1999 +0000
+++ b/lib/libc/net/gethnamaddr.c Thu Jul 01 16:43:18 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gethnamaddr.c,v 1.18 1999/06/02 22:14:07 tron Exp $ */
+/* $NetBSD: gethnamaddr.c,v 1.19 1999/07/01 16:43:18 itojun 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.18 1999/06/02 22:14:07 tron Exp $");
+__RCSID("$NetBSD: gethnamaddr.c,v 1.19 1999/07/01 16:43:18 itojun Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -1072,7 +1072,7 @@
default:
return NS_UNAVAIL;
}
- if ((n = res_search(name, C_IN, T_A, buf.buf, sizeof(buf))) < 0) {
+ if ((n = res_search(name, C_IN, type, buf.buf, sizeof(buf))) < 0) {
dprintf("res_search failed (%d)\n", n);
return NS_NOTFOUND;
}
Home |
Main Index |
Thread Index |
Old Index