diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-04-06 14:09:07 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-04-06 14:09:07 +0000 |
commit | ca58bbb32586ae033dfdea3b3fcb3f4357167d5d (patch) | |
tree | 5ee39c65b179b39d49e3fe5b4d6273c33fe6ca7a | |
parent | 9ff2b854429fad07ccf08ca4dafca487ca296d18 (diff) |
Lose the pointless third paramater to fcntl(F_GETFL). Using SOCK_NONBLOCK
instead of fcntl() dance would significantly change designed semantics.
ok djm@
-rw-r--r-- | usr.bin/tcpbench/tcpbench.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tcpbench/tcpbench.c b/usr.bin/tcpbench/tcpbench.c index db0bea5ea28..a1c058500a8 100644 --- a/usr.bin/tcpbench/tcpbench.c +++ b/usr.bin/tcpbench/tcpbench.c @@ -896,7 +896,7 @@ client_init(struct addrinfo *aitop, int nconn, struct statctx *udp_sc, } if (sock == -1) errx(1, "No host found"); - if ((r = fcntl(sock, F_GETFL, 0)) == -1) + if ((r = fcntl(sock, F_GETFL)) == -1) err(1, "fcntl(F_GETFL)"); r |= O_NONBLOCK; if (fcntl(sock, F_SETFL, r) == -1) |