Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/sysinst now that msg_window returns a value, c...



details:   https://anonhg.NetBSD.org/src/rev/86850153a40a
branches:  trunk
changeset: 473935:86850153a40a
user:      cgd <cgd%NetBSD.org@localhost>
date:      Tue Jun 22 15:04:15 1999 +0000

description:
now that msg_window returns a value, check it

diffstat:

 distrib/utils/sysinst/main.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r cd09a39b85d8 -r 86850153a40a distrib/utils/sysinst/main.c
--- a/distrib/utils/sysinst/main.c      Tue Jun 22 15:00:37 1999 +0000
+++ b/distrib/utils/sysinst/main.c      Tue Jun 22 15:04:15 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.18 1999/06/22 00:43:57 cgd Exp $    */
+/*     $NetBSD: main.c,v 1.19 1999/06/22 15:04:15 cgd Exp $    */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -124,7 +124,11 @@
                         "sysinst: screen too small\n");
                exit(1);
        }
-               msg_window(win);
+       if (msg_window(win) != 0) {
+               (void)fprintf(stderr,
+                        "sysinst: couldn't initialize message window\n");
+               exit(1);
+       }
 
        /* Watch for signals and clean up */
        (void)atexit(cleanup);



Home | Main Index | Thread Index | Old Index