summaryrefslogtreecommitdiff
path: root/games/random
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-11-04 21:22:11 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-11-04 21:22:11 +0000
commitc21958d4beca24b0b13f148c937df4785a064d44 (patch)
tree8fe7dd8b70c0c9fef91ff9ae1b923134d6c2abdf /games/random
parentd3037ce85fdf672ecf23feb9122711d0bfff6ad9 (diff)
replace setbuf with setvbuf, from Frederic Nowak
Diffstat (limited to 'games/random')
-rw-r--r--games/random/random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/random/random.c b/games/random/random.c
index ee5ce052bbe..a23942504b0 100644
--- a/games/random/random.c
+++ b/games/random/random.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: random.c,v 1.13 2015/10/14 08:12:12 doug Exp $ */
+/* $OpenBSD: random.c,v 1.14 2015/11/04 21:22:10 tedu Exp $ */
/* $NetBSD: random.c,v 1.3 1995/04/22 07:44:05 cgd Exp $ */
/*
@@ -101,7 +101,7 @@ main(int argc, char *argv[])
* to write to the standard output.
*/
if (unbuffer_output)
- setbuf(stdout, NULL);
+ setvbuf(stdout, NULL, _IONBF, 0);
/*
* Select whether to print the first line. (Prime the pump.)