]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/xmas.c
ncurses 6.2 - patch 20210320
[ncurses.git] / test / xmas.c
index f66ba6f04c612b8e70dcd5f189d115804c023d7b..e157a7cb69a6648baf0e726cbd8f88e5a70885b6 100644 (file)
@@ -92,7 +92,7 @@
 /******************************************************************************/
 
 /*
- * $Id: xmas.c,v 1.33 2017/09/30 19:14:13 tom Exp $
+ * $Id: xmas.c,v 1.35 2021/03/20 16:15:31 tom Exp $
  */
 #include <test.priv.h>
 
@@ -133,7 +133,7 @@ static WINDOW *w_holiday;
 static WINDOW *w_del_msg;
 static bool *my_pairs;
 
-static void done(int sig) GCC_NORETURN;
+static GCC_NORETURN void done(int sig);
 
 static void
 set_color(WINDOW *win, chtype color)
@@ -638,7 +638,7 @@ done(int sig GCC_UNUSED)
 {
     move(LINES - 1, 0);
     refresh();
-    exit_curses();
+    stop_curses();
 
 #if NO_LEAKS
     if (my_pairs != 0)
@@ -749,7 +749,7 @@ main(int argc, char *argv[])
        (w_holiday = newwin(1, 26, 3, 27)) == 0 ||
 
        (w_del_msg = newwin(1, 19, 23, 60)) == 0) {
-       exit_curses();
+       stop_curses();
        fprintf(stderr, "Cannot create windows - screen too small\n");
        ExitProgram(EXIT_FAILURE);
     }