diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2014-11-26 18:34:53 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2014-11-26 18:34:53 +0000 |
commit | 35b8c30a6f0433fcbf29d035097c44d0fb8cac09 (patch) | |
tree | 42906177e3c7862b1acb0b679e9aa9d3377462ea /usr.bin/tcpbench | |
parent | 5482bf416acec0fc5e5f09533eef538962865157 (diff) |
Prefer setvbuf() to setlinebuf() for portability; ok deraadt@
Diffstat (limited to 'usr.bin/tcpbench')
-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 7832bf71fad..a9e83873ed9 100644 --- a/usr.bin/tcpbench/tcpbench.c +++ b/usr.bin/tcpbench/tcpbench.c @@ -1003,7 +1003,7 @@ main(int argc, char **argv) struct statctx *udp_sc = NULL; /* Init world */ - setlinebuf(stdout); + setvbuf(stdout, NULL, _IOLBF, 0); ptb = &tcpbench; ptb->dummybuf_len = 0; ptb->Sflag = ptb->sflag = ptb->vflag = 0; |