diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/net/getnameinfo.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/net/getnameinfo.3 b/src/lib/libc/net/getnameinfo.3 index 2dd1bce4d6..8aee071602 100644 --- a/src/lib/libc/net/getnameinfo.3 +++ b/src/lib/libc/net/getnameinfo.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: getnameinfo.3,v 1.4 2000/01/17 08:16:58 itojun Exp $ | 1 | .\" $OpenBSD: getnameinfo.3,v 1.5 2000/01/17 08:20:28 deraadt Exp $ |
| 2 | .\" | 2 | .\" |
| 3 | .\" Copyright (c) 1983, 1987, 1991, 1993 | 3 | .\" Copyright (c) 1983, 1987, 1991, 1993 |
| 4 | .\" The Regents of the University of California. All rights reserved. | 4 | .\" The Regents of the University of California. All rights reserved. |
| @@ -199,7 +199,7 @@ struct sockaddr *sa; /* input */ | |||
| 199 | char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; | 199 | char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; |
| 200 | 200 | ||
| 201 | if (getnameinfo(sa, sa->sa_len, hbuf, sizeof(hbuf), sbuf, | 201 | if (getnameinfo(sa, sa->sa_len, hbuf, sizeof(hbuf), sbuf, |
| 202 | sizeof(sbuf), NI_NUMERICHOST | NI_NUMERICSERV)) { | 202 | sizeof(sbuf), NI_NUMERICHOST | NI_NUMERICSERV)) { |
| 203 | errx(1, "could not get numeric hostname"); | 203 | errx(1, "could not get numeric hostname"); |
| 204 | /*NOTREACHED*/ | 204 | /*NOTREACHED*/ |
| 205 | } | 205 | } |
| @@ -212,7 +212,7 @@ struct sockaddr *sa; /* input */ | |||
| 212 | char hbuf[NI_MAXHOST]; | 212 | char hbuf[NI_MAXHOST]; |
| 213 | 213 | ||
| 214 | if (getnameinfo(sa, sa->sa_len, hbuf, sizeof(hbuf), NULL, 0, | 214 | if (getnameinfo(sa, sa->sa_len, hbuf, sizeof(hbuf), NULL, 0, |
| 215 | NI_NAMEREQD)) { | 215 | NI_NAMEREQD)) { |
| 216 | errx(1, "could not resolve hostname"); | 216 | errx(1, "could not resolve hostname"); |
| 217 | /*NOTREACHED*/ | 217 | /*NOTREACHED*/ |
| 218 | } | 218 | } |
