diff options
Diffstat (limited to 'contrib/ncurses/test/gdc.c')
-rw-r--r-- | contrib/ncurses/test/gdc.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/contrib/ncurses/test/gdc.c b/contrib/ncurses/test/gdc.c index c215874..8b37b1e44 100644 --- a/contrib/ncurses/test/gdc.c +++ b/contrib/ncurses/test/gdc.c @@ -6,14 +6,12 @@ * modified 10-18-89 for curses (jrl) * 10-18-89 added signal handling * - * $Id: gdc.c,v 1.16 2001/02/24 23:27:22 tom Exp $ + * $Id: gdc.c,v 1.21 2002/03/23 22:17:24 tom Exp $ */ -#include <test.priv.h> - #include <time.h> -#include <signal.h> -#include <string.h> + +#include <test.priv.h> #define YBASE 10 #define XBASE 10 @@ -38,7 +36,7 @@ sighndl(int signo) sigtermed = signo; if (redirected) { endwin(); - exit(EXIT_FAILURE); + ExitProgram(EXIT_FAILURE); } } @@ -120,7 +118,7 @@ usage(void) unsigned j; for (j = 0; j < SIZEOF(msg); j++) fprintf(stderr, "%s\n", msg[j]); - exit(EXIT_FAILURE); + ExitProgram(EXIT_FAILURE); } int @@ -163,7 +161,7 @@ main(int argc, char *argv[]) if (name == 0 || newterm(name, ofp, ifp) == 0) { fprintf(stderr, "cannot open terminal\n"); - exit(EXIT_FAILURE); + ExitProgram(EXIT_FAILURE); } } else { @@ -304,7 +302,7 @@ main(int argc, char *argv[]) standend(); endwin(); fprintf(stderr, "gdc terminated by signal %d\n", sigtermed); - return EXIT_FAILURE; + ExitProgram(EXIT_FAILURE); } /* FALLTHRU */ default: @@ -313,5 +311,5 @@ main(int argc, char *argv[]) } while (--count); standend(); endwin(); - return EXIT_SUCCESS; + ExitProgram(EXIT_SUCCESS); } |