summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/getnameinfo.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/net/getnameinfo.3')
-rw-r--r--src/lib/libc/net/getnameinfo.36
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 */
199char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; 199char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV];
200 200
201if (getnameinfo(sa, sa->sa_len, hbuf, sizeof(hbuf), sbuf, 201if (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 */
212char hbuf[NI_MAXHOST]; 212char hbuf[NI_MAXHOST];
213 213
214if (getnameinfo(sa, sa->sa_len, hbuf, sizeof(hbuf), NULL, 0, 214if (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}