diff options
Diffstat (limited to 'src/lib/libc/net/getnetnamadr.c')
-rw-r--r-- | src/lib/libc/net/getnetnamadr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libc/net/getnetnamadr.c b/src/lib/libc/net/getnetnamadr.c index 42410264b1..303ac2cc54 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.24 2005/03/25 13:24:12 otto Exp $ */ | 1 | /* $OpenBSD: getnetnamadr.c,v 1.25 2005/03/30 02:58:28 tedu Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 1997, Jason Downs. All rights reserved. | 4 | * Copyright (c) 1997, Jason Downs. All rights reserved. |
@@ -66,7 +66,7 @@ static char sccsid[] = "@(#)getnetbyaddr.c 8.1 (Berkeley) 6/4/93"; | |||
66 | static char sccsid_[] = "from getnetnamadr.c 1.4 (Coimbra) 93/06/03"; | 66 | static char sccsid_[] = "from getnetnamadr.c 1.4 (Coimbra) 93/06/03"; |
67 | static char rcsid[] = "$From: getnetnamadr.c,v 8.7 1996/08/05 08:31:35 vixie Exp $"; | 67 | static char rcsid[] = "$From: getnetnamadr.c,v 8.7 1996/08/05 08:31:35 vixie Exp $"; |
68 | #else | 68 | #else |
69 | static char rcsid[] = "$OpenBSD: getnetnamadr.c,v 1.24 2005/03/25 13:24:12 otto Exp $"; | 69 | static char rcsid[] = "$OpenBSD: getnetnamadr.c,v 1.25 2005/03/30 02:58:28 tedu Exp $"; |
70 | #endif | 70 | #endif |
71 | #endif /* LIBC_SCCS and not lint */ | 71 | #endif /* LIBC_SCCS and not lint */ |
72 | 72 | ||
@@ -259,7 +259,7 @@ getnetbyaddr(in_addr_t net, int net_type) | |||
259 | char lookups[MAXDNSLUS]; | 259 | char lookups[MAXDNSLUS]; |
260 | int i; | 260 | int i; |
261 | 261 | ||
262 | if ((_resp->options & RES_INIT) == 0 && res_init() == -1) | 262 | if (_res_init(0) == -1) |
263 | return(_getnetbyaddr(net, net_type)); | 263 | return(_getnetbyaddr(net, net_type)); |
264 | 264 | ||
265 | bcopy(_resp->lookups, lookups, sizeof lookups); | 265 | bcopy(_resp->lookups, lookups, sizeof lookups); |
@@ -347,7 +347,7 @@ getnetbyname(const char *net) | |||
347 | char lookups[MAXDNSLUS]; | 347 | char lookups[MAXDNSLUS]; |
348 | int i; | 348 | int i; |
349 | 349 | ||
350 | if ((_resp->options & RES_INIT) == 0 && res_init() == -1) | 350 | if (_res_init(0) == -1) |
351 | return (_getnetbyname(net)); | 351 | return (_getnetbyname(net)); |
352 | 352 | ||
353 | bcopy(_resp->lookups, lookups, sizeof lookups); | 353 | bcopy(_resp->lookups, lookups, sizeof lookups); |