From 0b64e1476ba01c6ba095af7d0623e93362281a12 Mon Sep 17 00:00:00 2001 From: nectar Date: Thu, 1 May 2003 19:03:14 +0000 Subject: Back out the `hiding' of strlcpy and strlcat. Several people vocally objected to this safety belt. --- lib/libc/net/gethostbydns.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/libc/net/gethostbydns.c') diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c index 9eeba2f..02cd223 100644 --- a/lib/libc/net/gethostbydns.c +++ b/lib/libc/net/gethostbydns.c @@ -60,7 +60,6 @@ static char fromrcsid[] = "From: Id: gethnamaddr.c,v 8.23 1998/04/07 04:59:46 vi #include __FBSDID("$FreeBSD$"); -#include "namespace.h" #include #include #include @@ -79,7 +78,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include "un-namespace.h" #include "res_config.h" @@ -676,7 +674,7 @@ _dns_gethostbyaddr(void *rval, void *cb_data, va_list ap) uaddr[n] & 0xf, (uaddr[n] >> 4) & 0xf)); } - _strlcat(qbuf, "ip6.arpa", sizeof(qbuf)); + strlcat(qbuf, "ip6.arpa", sizeof(qbuf)); break; default: abort(); @@ -688,7 +686,7 @@ _dns_gethostbyaddr(void *rval, void *cb_data, va_list ap) n = res_query(qbuf, C_IN, T_PTR, (u_char *)buf->buf, sizeof buf->buf); if (n < 0 && af == AF_INET6) { *qp = '\0'; - _strlcat(qbuf, "ip6.int", sizeof(qbuf)); + strlcat(qbuf, "ip6.int", sizeof(qbuf)); n = res_query(qbuf, C_IN, T_PTR, (u_char *)buf->buf, sizeof buf->buf); } -- cgit v1.1