diff options
Diffstat (limited to 'src/lib/libc/net/res_init.c')
| -rw-r--r-- | src/lib/libc/net/res_init.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/lib/libc/net/res_init.c b/src/lib/libc/net/res_init.c index 121606ac48..099aa04e30 100644 --- a/src/lib/libc/net/res_init.c +++ b/src/lib/libc/net/res_init.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: res_init.c,v 1.25 2002/02/16 21:27:23 millert Exp $ */ | 1 | /* $OpenBSD: res_init.c,v 1.26 2002/06/27 10:14:02 itojun Exp $ */ | 
| 2 | 2 | ||
| 3 | /* | 3 | /* | 
| 4 | * ++Copyright++ 1985, 1989, 1993 | 4 | * ++Copyright++ 1985, 1989, 1993 | 
| @@ -64,7 +64,7 @@ | |||
| 64 | static char sccsid[] = "@(#)res_init.c 8.1 (Berkeley) 6/7/93"; | 64 | static char sccsid[] = "@(#)res_init.c 8.1 (Berkeley) 6/7/93"; | 
| 65 | static char rcsid[] = "$From: res_init.c,v 8.7 1996/09/28 06:51:07 vixie Exp $"; | 65 | static char rcsid[] = "$From: res_init.c,v 8.7 1996/09/28 06:51:07 vixie Exp $"; | 
| 66 | #else | 66 | #else | 
| 67 | static char rcsid[] = "$OpenBSD: res_init.c,v 1.25 2002/02/16 21:27:23 millert Exp $"; | 67 | static char rcsid[] = "$OpenBSD: res_init.c,v 1.26 2002/06/27 10:14:02 itojun Exp $"; | 
| 68 | #endif | 68 | #endif | 
| 69 | #endif /* LIBC_SCCS and not lint */ | 69 | #endif /* LIBC_SCCS and not lint */ | 
| 70 | 70 | ||
| @@ -371,7 +371,7 @@ res_init() | |||
| 371 | memset(&hints, 0, sizeof(hints)); | 371 | memset(&hints, 0, sizeof(hints)); | 
| 372 | hints.ai_flags = AI_NUMERICHOST; | 372 | hints.ai_flags = AI_NUMERICHOST; | 
| 373 | hints.ai_socktype = SOCK_DGRAM; | 373 | hints.ai_socktype = SOCK_DGRAM; | 
| 374 | snprintf(pbuf, sizeof(pbuf), "%d", NAMESERVER_PORT); | 374 | snprintf(pbuf, sizeof(pbuf), "%u", NAMESERVER_PORT); | 
| 375 | res = NULL; | 375 | res = NULL; | 
| 376 | if (getaddrinfo(cp, pbuf, &hints, &res) == 0 && | 376 | if (getaddrinfo(cp, pbuf, &hints, &res) == 0 && | 
| 377 | res->ai_next == NULL) { | 377 | res->ai_next == NULL) { | 
| @@ -593,7 +593,7 @@ res_setoptions(options, source) | |||
| 593 | _res.ndots = RES_MAXNDOTS; | 593 | _res.ndots = RES_MAXNDOTS; | 
| 594 | #ifdef DEBUG | 594 | #ifdef DEBUG | 
| 595 | if (_res.options & RES_DEBUG) | 595 | if (_res.options & RES_DEBUG) | 
| 596 | printf(";;\tndots=%d\n", _res.ndots); | 596 | printf(";;\tndots=%u\n", _res.ndots); | 
| 597 | #endif | 597 | #endif | 
| 598 | } | 598 | } | 
| 599 | } else if (!strncmp(cp, "debug", sizeof("debug") - 1)) { | 599 | } else if (!strncmp(cp, "debug", sizeof("debug") - 1)) { | 
