summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorderaadt <>2000-01-17 08:20:28 +0000
committerderaadt <>2000-01-17 08:20:28 +0000
commit3db265033565d5b8e7d12707bf6dbf36ab0fe368 (patch)
treeb7b5fb6e0e16e2ce4cada60c8e6ee9b5ddbea680 /src
parent2bfc7e66c2e632f418c7896053db7d24d893e473 (diff)
downloadopenbsd-3db265033565d5b8e7d12707bf6dbf36ab0fe368.tar.gz
openbsd-3db265033565d5b8e7d12707bf6dbf36ab0fe368.tar.bz2
openbsd-3db265033565d5b8e7d12707bf6dbf36ab0fe368.zip
indent
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/net/getaddrinfo.36
-rw-r--r--src/lib/libc/net/getnameinfo.36
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libc/net/getaddrinfo.3 b/src/lib/libc/net/getaddrinfo.3
index 35a8ae0d38..7cf1f1a017 100644
--- a/src/lib/libc/net/getaddrinfo.3
+++ b/src/lib/libc/net/getaddrinfo.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getaddrinfo.3,v 1.5 2000/01/17 08:16:58 itojun Exp $ 1.\" $OpenBSD: getaddrinfo.3,v 1.6 2000/01/17 08:20:27 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.
@@ -350,7 +350,7 @@ if (error) {
350s = -1; 350s = -1;
351for (res = res0; res; res = res->ai_next) { 351for (res = res0; res; res = res->ai_next) {
352 s = socket(res->ai_family, res->ai_socktype, 352 s = socket(res->ai_family, res->ai_socktype,
353 res->ai_protocol); 353 res->ai_protocol);
354 if (s < 0) { 354 if (s < 0) {
355 cause = "socket"; 355 cause = "socket";
356 continue; 356 continue;
@@ -394,7 +394,7 @@ if (error) {
394nsock = 0; 394nsock = 0;
395for (res = res0; res && nsock < MAXSOCK; res = res->ai_next) { 395for (res = res0; res && nsock < MAXSOCK; res = res->ai_next) {
396 s[nsock] = socket(res->ai_family, res->ai_socktype, 396 s[nsock] = socket(res->ai_family, res->ai_socktype,
397 res->ai_protocol); 397 res->ai_protocol);
398 if (s[nsock] < 0) { 398 if (s[nsock] < 0) {
399 cause = "socket"; 399 cause = "socket";
400 continue; 400 continue;
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}