summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2003-08-28 01:47:51 +0000
committeritojun <itojun@openbsd.org>2003-08-28 01:47:51 +0000
commitd75be2bf9f256e76e73995af796d430c41204d27 (patch)
tree6fd575b4d7f3a531fcdda1ed1dbd64b6bc7e6cda /lib/libc
parentadd CAVEATS section (diff)
downloadwireguard-openbsd-d75be2bf9f256e76e73995af796d430c41204d27.tar.xz
wireguard-openbsd-d75be2bf9f256e76e73995af796d430c41204d27.zip
add int error in CAVEAT
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/getnameinfo.33
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/net/getnameinfo.3 b/lib/libc/net/getnameinfo.3
index 00c70bdb7ad..552f54526fd 100644
--- a/lib/libc/net/getnameinfo.3
+++ b/lib/libc/net/getnameinfo.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getnameinfo.3,v 1.23 2003/08/28 01:42:18 itojun Exp $
+.\" $OpenBSD: getnameinfo.3,v 1.24 2003/08/28 01:47:51 itojun Exp $
.\" $KAME: getnameinfo.3,v 1.20 2001/01/05 13:37:37 itojun Exp $
.\"
.\" Copyright (c) 1983, 1987, 1991, 1993
@@ -315,6 +315,7 @@ struct sockaddr *sa;
socklen_t salen;
char addr[NI_MAXHOST];
struct addrinfo hints, *res;
+int error;
error = getnameinfo(sa, salen, addr, sizeof(addr),
NULL, 0, NI_NAMEREQD);