diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-01-17 08:20:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-01-17 08:20:29 +0000 |
commit | d2e0da1e006f6ef0608253df4a961e137bca6678 (patch) | |
tree | e02f60efef846953df0a21a0bac07edaeb33a2c2 | |
parent | 5dfd27412770f936fac4ed642f7f209e5799c326 (diff) |
indent
-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*/ } |