diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-11-04 21:22:11 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-11-04 21:22:11 +0000 |
commit | c21958d4beca24b0b13f148c937df4785a064d44 (patch) | |
tree | 8fe7dd8b70c0c9fef91ff9ae1b923134d6c2abdf /games/gomoku/main.c | |
parent | d3037ce85fdf672ecf23feb9122711d0bfff6ad9 (diff) |
replace setbuf with setvbuf, from Frederic Nowak
Diffstat (limited to 'games/gomoku/main.c')
-rw-r--r-- | games/gomoku/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/gomoku/main.c b/games/gomoku/main.c index 735446e40dd..e927e7005fd 100644 --- a/games/gomoku/main.c +++ b/games/gomoku/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.27 2014/12/07 19:56:19 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.28 2015/11/04 21:22:10 tedu Exp $ */ /* * Copyright (c) 1994 * The Regents of the University of California. All rights reserved. @@ -155,7 +155,7 @@ again: clrtoeol(); } } else { - setbuf(stdout, 0); + setvbuf(stdout, NULL, _IONBF, 0); get_line(buf, sizeof(buf)); if (strcmp(buf, "black") == 0) color = BLACK; |