From 793893d418c9fc88d4515a1edecf2984bf2a99f6 Mon Sep 17 00:00:00 2001 From: niklas <> Date: Sun, 30 May 1999 14:20:29 +0000 Subject: Revertion of last change, which was due to emacs' stupid idea of keeping the "*Shell Command Output*" buffer's wd from its creation instead of using the last command's wd!!!! --- src/lib/libc/net/gethostnamadr.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/lib/libc/net/gethostnamadr.c') diff --git a/src/lib/libc/net/gethostnamadr.c b/src/lib/libc/net/gethostnamadr.c index efd1ddece7..495ca49089 100644 --- a/src/lib/libc/net/gethostnamadr.c +++ b/src/lib/libc/net/gethostnamadr.c @@ -52,7 +52,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.33 1999/05/30 14:06:07 niklas Exp $"; +static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.34 1999/05/30 14:20:29 niklas Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -282,11 +282,7 @@ getanswer(answer, anslen, qname, qtype) } if (qtype == T_PTR && type == T_CNAME) { n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf); -#ifdef USE_RESOLV_NAME_OK if ((n < 0) || !res_hnok(tbuf)) { -#else - if ((n < 0) || !_hokchar(tbuf)) { -#endif had_error++; continue; } @@ -320,11 +316,7 @@ getanswer(answer, anslen, qname, qtype) continue; /* XXX - had_error++ ? */ } n = dn_expand(answer->buf, eom, cp, bp, buflen); -#ifdef USE_RESOLV_NAME_OK if ((n < 0) || !res_hnok(bp)) { -#else - if ((n < 0) || !_hokchar(bp)) { -#endif had_error++; break; } -- cgit v1.2.3-55-g6feb