diff options
| author | niklas <> | 1999-05-30 14:20:29 +0000 |
|---|---|---|
| committer | niklas <> | 1999-05-30 14:20:29 +0000 |
| commit | 793893d418c9fc88d4515a1edecf2984bf2a99f6 (patch) | |
| tree | 932b32aabc274ff935b344c41485e56c02a81f09 /src/lib/libc/net/getnetnamadr.c | |
| parent | 6563b2b973d8d8a94e467636dc0c78305c3c8272 (diff) | |
| download | openbsd-793893d418c9fc88d4515a1edecf2984bf2a99f6.tar.gz openbsd-793893d418c9fc88d4515a1edecf2984bf2a99f6.tar.bz2 openbsd-793893d418c9fc88d4515a1edecf2984bf2a99f6.zip | |
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!!!!
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/net/getnetnamadr.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/libc/net/getnetnamadr.c b/src/lib/libc/net/getnetnamadr.c index 0f8ef449bb..65a6bda900 100644 --- a/src/lib/libc/net/getnetnamadr.c +++ b/src/lib/libc/net/getnetnamadr.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: getnetnamadr.c,v 1.11 1999/05/30 14:06:08 niklas Exp $ */ | 1 | /* $OpenBSD: getnetnamadr.c,v 1.12 1999/05/30 14:20:29 niklas Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 1997, Jason Downs. All rights reserved. | 4 | * Copyright (c) 1997, Jason Downs. All rights reserved. |
| @@ -77,7 +77,7 @@ static char sccsid[] = "@(#)getnetbyaddr.c 8.1 (Berkeley) 6/4/93"; | |||
| 77 | static char sccsid_[] = "from getnetnamadr.c 1.4 (Coimbra) 93/06/03"; | 77 | static char sccsid_[] = "from getnetnamadr.c 1.4 (Coimbra) 93/06/03"; |
| 78 | static char rcsid[] = "$From: getnetnamadr.c,v 8.7 1996/08/05 08:31:35 vixie Exp $"; | 78 | static char rcsid[] = "$From: getnetnamadr.c,v 8.7 1996/08/05 08:31:35 vixie Exp $"; |
| 79 | #else | 79 | #else |
| 80 | static char rcsid[] = "$OpenBSD: getnetnamadr.c,v 1.11 1999/05/30 14:06:08 niklas Exp $"; | 80 | static char rcsid[] = "$OpenBSD: getnetnamadr.c,v 1.12 1999/05/30 14:20:29 niklas Exp $"; |
| 81 | #endif | 81 | #endif |
| 82 | #endif /* LIBC_SCCS and not lint */ | 82 | #endif /* LIBC_SCCS and not lint */ |
| 83 | 83 | ||
| @@ -192,11 +192,7 @@ getnetanswer(answer, anslen, net_i) | |||
| 192 | GETSHORT(n, cp); | 192 | GETSHORT(n, cp); |
| 193 | if (class == C_IN && type == T_PTR) { | 193 | if (class == C_IN && type == T_PTR) { |
| 194 | n = dn_expand(answer->buf, eom, cp, bp, buflen); | 194 | n = dn_expand(answer->buf, eom, cp, bp, buflen); |
| 195 | #ifdef USE_RESOLV_NAME_OK | ||
| 196 | if ((n < 0) || !res_hnok(bp)) { | 195 | if ((n < 0) || !res_hnok(bp)) { |
| 197 | #else | ||
| 198 | if ((n < 0) || !_hokchar(bp)) { | ||
| 199 | #endif | ||
| 200 | cp += n; | 196 | cp += n; |
| 201 | return (NULL); | 197 | return (NULL); |
| 202 | } | 198 | } |
