diff options
| author | jsm <jsm@NetBSD.org> | 1999-09-10 00:18:20 +0000 |
|---|---|---|
| committer | jsm <jsm@NetBSD.org> | 1999-09-10 00:18:20 +0000 |
| commit | b9e9a125627944dbfaacf50922e58f4900e9c567 (patch) | |
| tree | a8357b35169078e664f1e5fd90266ef0a0e662d0 /boggle/mkindex | |
| parent | 517497ea9683bb0c3bb9a38d4b7930b325c9db03 (diff) | |
| download | bsdgames-darwin-b9e9a125627944dbfaacf50922e58f4900e9c567.tar.gz bsdgames-darwin-b9e9a125627944dbfaacf50922e58f4900e9c567.zip | |
Check for write errors in auxiliary programs used during build of games.
Diffstat (limited to 'boggle/mkindex')
| -rw-r--r-- | boggle/mkindex/mkindex.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/boggle/mkindex/mkindex.c b/boggle/mkindex/mkindex.c index b93096c2..53610aa4 100644 --- a/boggle/mkindex/mkindex.c +++ b/boggle/mkindex/mkindex.c @@ -1,4 +1,4 @@ -/* $NetBSD: mkindex.c,v 1.4 1998/09/11 13:16:05 hubertf Exp $ */ +/* $NetBSD: mkindex.c,v 1.5 1999/09/10 00:18:21 jsm Exp $ */ /*- * Copyright (c) 1993 @@ -46,10 +46,11 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)mkindex.c 8.1 (Berkeley) 6/11/93"; #else -static char rcsid[] = "$NetBSD: mkindex.c,v 1.4 1998/09/11 13:16:05 hubertf Exp $"; +static char rcsid[] = "$NetBSD: mkindex.c,v 1.5 1999/09/10 00:18:21 jsm Exp $"; #endif #endif /* not lint */ +#include <err.h> #include <stdio.h> #include "bog.h" @@ -75,6 +76,9 @@ main(void) off += clen + 1; } printf("%c %6ld %6ld\n", prev, start, off - 1); + fflush(stdout); + if (ferror(stdout)) + err(1, "writing standard output"); exit(0); } |
