summaryrefslogtreecommitdiff
path: root/src/usr.bin
diff options
context:
space:
mode:
authorderaadt <>2004-03-03 06:50:13 +0000
committerderaadt <>2004-03-03 06:50:13 +0000
commit79d60daca1d4743d27da2d6ffb959d3d25bdd176 (patch)
treeaa57d61245c81972f313e17736807ed1d0ddbe43 /src/usr.bin
parent1e83adf2a667486fb4d7679b3c6c8140106165a6 (diff)
downloadopenbsd-79d60daca1d4743d27da2d6ffb959d3d25bdd176.tar.gz
openbsd-79d60daca1d4743d27da2d6ffb959d3d25bdd176.tar.bz2
openbsd-79d60daca1d4743d27da2d6ffb959d3d25bdd176.zip
spaces, was reading code..
Diffstat (limited to 'src/usr.bin')
-rw-r--r--src/usr.bin/nc/netcat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c
index d6d3a2cffe..f62612ad95 100644
--- a/src/usr.bin/nc/netcat.c
+++ b/src/usr.bin/nc/netcat.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: netcat.c,v 1.69 2004/03/03 06:45:54 tedu Exp $ */ 1/* $OpenBSD: netcat.c,v 1.70 2004/03/03 06:50:13 deraadt Exp $ */
2/* 2/*
3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> 3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
4 * 4 *
@@ -168,7 +168,7 @@ main(int argc, char *argv[])
168 case 'v': 168 case 'v':
169 vflag = 1; 169 vflag = 1;
170 break; 170 break;
171 case 'w': 171 case 'w':
172 timeout = (int)strtoul(optarg, &endp, 10); 172 timeout = (int)strtoul(optarg, &endp, 10);
173 if (timeout < 0 || *endp != '\0') 173 if (timeout < 0 || *endp != '\0')
174 errx(1, "timeout cannot be negative"); 174 errx(1, "timeout cannot be negative");
@@ -522,7 +522,7 @@ local_listen(char *host, char *port, struct addrinfo hints)
522 hints.ai_family = AF_INET; 522 hints.ai_family = AF_INET;
523 523
524 if ((error = getaddrinfo(host, port, &hints, &res))) 524 if ((error = getaddrinfo(host, port, &hints, &res)))
525 errx(1, "getaddrinfo: %s", gai_strerror(error)); 525 errx(1, "getaddrinfo: %s", gai_strerror(error));
526 526
527 res0 = res; 527 res0 = res;
528 do { 528 do {
@@ -615,7 +615,7 @@ readwrite(int nfd)
615 pfd[1].fd = -1; 615 pfd[1].fd = -1;
616 pfd[1].events = 0; 616 pfd[1].events = 0;
617 } else { 617 } else {
618 if((ret = atomicio( 618 if ((ret = atomicio(
619 (ssize_t (*)(int, void *, size_t))write, 619 (ssize_t (*)(int, void *, size_t))write,
620 nfd, buf, n)) != n) 620 nfd, buf, n)) != n)
621 return; 621 return;