=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tcpbench/tcpbench.c,v retrieving revision 1.49 retrieving revision 1.50 diff -u -r1.49 -r1.50 --- src/usr.bin/tcpbench/tcpbench.c 2016/03/28 11:48:38 1.49 +++ src/usr.bin/tcpbench/tcpbench.c 2016/04/06 14:09:06 1.50 @@ -896,7 +896,7 @@ } 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)