diff options
Diffstat (limited to 'src/usr.bin/nc/netcat.c')
| -rw-r--r-- | src/usr.bin/nc/netcat.c | 8 |
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; |
