Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/adventure From PR 7985 by Joseph Myers <jsm28%cam.ac.uk@localhost>:



details:   https://anonhg.NetBSD.org/src/rev/313a1462ac9e
branches:  trunk
changeset: 474648:313a1462ac9e
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Wed Jul 14 17:21:03 1999 +0000

description:
>From PR 7985 by Joseph Myers <jsm28%cam.ac.uk@localhost>:

games/adventure/setup.c fails to check for errors when writing its
output.  This means that, if the disk fills up at this point during a
build, it would nevertheless fail to return an error status.

diffstat:

 games/adventure/setup.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r e892d1c295ad -r 313a1462ac9e games/adventure/setup.c
--- a/games/adventure/setup.c   Wed Jul 14 16:47:37 1999 +0000
+++ b/games/adventure/setup.c   Wed Jul 14 17:21:03 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: setup.c,v 1.6 1999/02/10 00:29:21 hubertf Exp $        */
+/*     $NetBSD: setup.c,v 1.7 1999/07/14 17:21:03 hubertf Exp $        */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -46,7 +46,7 @@
 #if 0
 static char sccsid[] = "@(#)setup.c    8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: setup.c,v 1.6 1999/02/10 00:29:21 hubertf Exp $");
+__RCSID("$NetBSD: setup.c,v 1.7 1999/07/14 17:21:03 hubertf Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -121,5 +121,8 @@
        }
        puts("\n\t0\n};");
        fclose(infile);
+       fflush(stdout);
+       if (ferror(stdout))
+               err(1, "writing standard output");
        exit(0);
 }



Home | Main Index | Thread Index | Old Index