diff options
author | 2000-01-17 08:20:27 +0000 | |
---|---|---|
committer | 2000-01-17 08:20:27 +0000 | |
commit | f1158c5eb27243df98a367bcc8a92bfe318e449c (patch) | |
tree | 539f4245a0582ff8575434c8d2fd695a75e49b97 /lib/libc/net | |
parent | sync with latest KAME version. now includes description on scoped addr (diff) | |
download | wireguard-openbsd-f1158c5eb27243df98a367bcc8a92bfe318e449c.tar.xz wireguard-openbsd-f1158c5eb27243df98a367bcc8a92bfe318e449c.zip |
indent
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/getaddrinfo.3 | 6 | ||||
-rw-r--r-- | lib/libc/net/getnameinfo.3 | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/net/getaddrinfo.3 b/lib/libc/net/getaddrinfo.3 index 35a8ae0d380..7cf1f1a017a 100644 --- a/lib/libc/net/getaddrinfo.3 +++ b/lib/libc/net/getaddrinfo.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getaddrinfo.3,v 1.5 2000/01/17 08:16:58 itojun Exp $ +.\" $OpenBSD: getaddrinfo.3,v 1.6 2000/01/17 08:20:27 deraadt Exp $ .\" .\" Copyright (c) 1983, 1987, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -350,7 +350,7 @@ if (error) { s = -1; for (res = res0; res; res = res->ai_next) { s = socket(res->ai_family, res->ai_socktype, - res->ai_protocol); + res->ai_protocol); if (s < 0) { cause = "socket"; continue; @@ -394,7 +394,7 @@ if (error) { nsock = 0; for (res = res0; res && nsock < MAXSOCK; res = res->ai_next) { s[nsock] = socket(res->ai_family, res->ai_socktype, - res->ai_protocol); + res->ai_protocol); if (s[nsock] < 0) { cause = "socket"; continue; diff --git a/lib/libc/net/getnameinfo.3 b/lib/libc/net/getnameinfo.3 index 2dd1bce4d61..8aee0716026 100644 --- a/lib/libc/net/getnameinfo.3 +++ b/lib/libc/net/getnameinfo.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getnameinfo.3,v 1.4 2000/01/17 08:16:58 itojun Exp $ +.\" $OpenBSD: getnameinfo.3,v 1.5 2000/01/17 08:20:28 deraadt Exp $ .\" .\" Copyright (c) 1983, 1987, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -199,7 +199,7 @@ struct sockaddr *sa; /* input */ char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; if (getnameinfo(sa, sa->sa_len, hbuf, sizeof(hbuf), sbuf, - sizeof(sbuf), NI_NUMERICHOST | NI_NUMERICSERV)) { + sizeof(sbuf), NI_NUMERICHOST | NI_NUMERICSERV)) { errx(1, "could not get numeric hostname"); /*NOTREACHED*/ } @@ -212,7 +212,7 @@ struct sockaddr *sa; /* input */ char hbuf[NI_MAXHOST]; if (getnameinfo(sa, sa->sa_len, hbuf, sizeof(hbuf), NULL, 0, - NI_NAMEREQD)) { + NI_NAMEREQD)) { errx(1, "could not resolve hostname"); /*NOTREACHED*/ } |