summaryrefslogtreecommitdiff
path: root/lib/libc/net
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-08-28 01:47:52 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-08-28 01:47:52 +0000
commit895fcf6e5a58c7d6dc3b15d2ad7c0b614aa47e62 (patch)
treee78f1f5c98754b96e3c5a866aa25bdfcf91df74a /lib/libc/net
parente1a417c0c05cfa17b52cbbd4b24e4331fc83621f (diff)
add int error in CAVEAT
Diffstat (limited to 'lib/libc/net')
-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);