diff options
author | Christiano F. Haesbaert <haesbaert@cvs.openbsd.org> | 2011-12-04 06:37:52 +0000 |
---|---|---|
committer | Christiano F. Haesbaert <haesbaert@cvs.openbsd.org> | 2011-12-04 06:37:52 +0000 |
commit | f79e522614e7b27927fea4f68c02b43082315274 (patch) | |
tree | 31707bd4a57bac4998eabe006ef087c3e53a30f2 /usr.bin/tcpbench/tcpbench.c | |
parent | 968dfa1e9404a727c5a18f522e9ab5cd4a09e352 (diff) |
Fix some warnx() calls which should be fprintf plus KNF.
Diffstat (limited to 'usr.bin/tcpbench/tcpbench.c')
-rw-r--r-- | usr.bin/tcpbench/tcpbench.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/tcpbench/tcpbench.c b/usr.bin/tcpbench/tcpbench.c index d8d213e44bb..8e098023cf9 100644 --- a/usr.bin/tcpbench/tcpbench.c +++ b/usr.bin/tcpbench/tcpbench.c @@ -330,8 +330,7 @@ retry: if (nretry--) { warnx("pcb prev pointer insane"); goto retry; - } - else + } else errx(1, "pcb prev pointer insane," " all attempts exausted"); } @@ -705,7 +704,8 @@ again: mainstats.nconns++; set_slice_timer(mainstats.nconns > 0); if (ptb->vflag) - warnx("Accepted connection from %s, fd = %d\n", tmp, sc->fd); + fprintf(stderr, "Accepted connection from %s, fd = %d\n", + tmp, sc->fd); } static void @@ -810,11 +810,11 @@ again: err(1, "write"); } if (TCP_MODE && n == 0) { - warnx("Remote end closed connection"); + fprintf(stderr, "Remote end closed connection"); exit(1); } if (ptb->vflag >= 3) - warnx("write: %zd bytes\n", n); + fprintf(stderr, "write: %zd bytes\n", n); sc->bytes += n; mainstats.slice_bytes += n; if (UDP_MODE) |