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/dc | |
parent | 5482bf416acec0fc5e5f09533eef538962865157 (diff) |
Prefer setvbuf() to setlinebuf() for portability; ok deraadt@
Diffstat (limited to 'usr.bin/dc')
-rw-r--r-- | usr.bin/dc/dc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/dc/dc.c b/usr.bin/dc/dc.c index e131fe95024..eb5d661a51c 100644 --- a/usr.bin/dc/dc.c +++ b/usr.bin/dc/dc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dc.c,v 1.12 2014/05/20 01:25:23 guenther Exp $ */ +/* $OpenBSD: dc.c,v 1.13 2014/11/26 18:34:51 millert Exp $ */ /* * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net> @@ -72,8 +72,8 @@ main(int argc, char *argv[]) argv += optind; init_bmachine(extended_regs); - (void)setlinebuf(stdout); - (void)setlinebuf(stderr); + (void)setvbuf(stdout, NULL, _IOLBF, 0); + (void)setvbuf(stderr, NULL, _IOLBF, 0); if (argc > 1) usage(); |