diff options
Diffstat (limited to 'src/lib/libc/net/sethostent.c')
-rw-r--r-- | src/lib/libc/net/sethostent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/sethostent.c b/src/lib/libc/net/sethostent.c index 2140d65d08..c0eae942ca 100644 --- a/src/lib/libc/net/sethostent.c +++ b/src/lib/libc/net/sethostent.c | |||
@@ -28,7 +28,7 @@ | |||
28 | */ | 28 | */ |
29 | 29 | ||
30 | #if defined(LIBC_SCCS) && !defined(lint) | 30 | #if defined(LIBC_SCCS) && !defined(lint) |
31 | static char rcsid[] = "$OpenBSD: sethostent.c,v 1.7 2005/03/25 13:24:12 otto Exp $"; | 31 | static char rcsid[] = "$OpenBSD: sethostent.c,v 1.8 2005/03/30 02:58:28 tedu Exp $"; |
32 | #endif /* LIBC_SCCS and not lint */ | 32 | #endif /* LIBC_SCCS and not lint */ |
33 | 33 | ||
34 | #include <sys/param.h> | 34 | #include <sys/param.h> |
@@ -44,7 +44,7 @@ sethostent(int stayopen) | |||
44 | { | 44 | { |
45 | struct __res_state *_resp = _THREAD_PRIVATE(_res, _res, &_res); | 45 | struct __res_state *_resp = _THREAD_PRIVATE(_res, _res, &_res); |
46 | 46 | ||
47 | if ((_resp->options & RES_INIT) == 0 && res_init() == -1) | 47 | if (_res_init(0) == -1) |
48 | return; | 48 | return; |
49 | if (stayopen) | 49 | if (stayopen) |
50 | _resp->options |= RES_STAYOPEN | RES_USEVC; | 50 | _resp->options |= RES_STAYOPEN | RES_USEVC; |