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/mille | |
parent | d3037ce85fdf672ecf23feb9122711d0bfff6ad9 (diff) |
replace setbuf with setvbuf, from Frederic Nowak
Diffstat (limited to 'games/mille')
-rw-r--r-- | games/mille/mille.c | 4 | ||||
-rw-r--r-- | games/mille/move.c | 4 | ||||
-rw-r--r-- | games/mille/varpush.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/games/mille/mille.c b/games/mille/mille.c index 7fa5a08ecbc..eaccaae217d 100644 --- a/games/mille/mille.c +++ b/games/mille/mille.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mille.c,v 1.20 2015/01/19 00:47:01 deraadt Exp $ */ +/* $OpenBSD: mille.c,v 1.21 2015/11/04 21:22:10 tedu Exp $ */ /* $NetBSD: mille.c,v 1.4 1995/03/24 05:01:48 cgd Exp $ */ /* @@ -48,7 +48,7 @@ main(ac, av) #ifdef DEBUG if (strcmp(av[0], "a.out") == 0) { outf = fopen("q", "w"); - setbuf(outf, (char *)NULL); + setvbuf(outf, NULL, _IONBF, 0); Debug = TRUE; } #endif diff --git a/games/mille/move.c b/games/mille/move.c index 374e3c3b520..2f18d93a7f6 100644 --- a/games/mille/move.c +++ b/games/mille/move.c @@ -1,4 +1,4 @@ -/* $OpenBSD: move.c,v 1.14 2015/10/24 17:51:59 mmcc Exp $ */ +/* $OpenBSD: move.c,v 1.15 2015/11/04 21:22:10 tedu Exp $ */ /* $NetBSD: move.c,v 1.4 1995/03/24 05:01:57 cgd Exp $ */ /* @@ -442,7 +442,7 @@ over: leaveok(Board, TRUE); if ((outf = fopen(buf, "w")) == NULL) warn("%s", buf); - setbuf(outf, (char *)NULL); + setvbuf(outf, NULL, _IONBF, 0); } Debug = !Debug; break; diff --git a/games/mille/varpush.c b/games/mille/varpush.c index ea3aa451cd4..7645d27d414 100644 --- a/games/mille/varpush.c +++ b/games/mille/varpush.c @@ -1,4 +1,4 @@ -/* $OpenBSD: varpush.c,v 1.8 2015/01/19 00:47:01 deraadt Exp $ */ +/* $OpenBSD: varpush.c,v 1.9 2015/11/04 21:22:10 tedu Exp $ */ /* $NetBSD: varpush.c,v 1.4 1995/03/24 05:02:35 cgd Exp $ */ /* @@ -85,7 +85,7 @@ over: goto over; } if (strcmp(buf, _PATH_DEVNULL) != 0) - setbuf(outf, (char *)NULL); + setvbuf(outf, NULL, _IONBF, 0); } #endif } else { |