aboutsummaryrefslogtreecommitdiff
path: root/contrib/ncurses/test/firework.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2002-05-21 05:30:25 +0000
committerPeter Wemm <peter@FreeBSD.org>2002-05-21 05:30:25 +0000
commit39f2269fcb4873fd97d70af944ec49f4230fadea (patch)
treebd986d58f5a6e348466b5362637ba93e6cd5bf8c /contrib/ncurses/test/firework.c
parent7e6a63408cfb0b48f0e41f77ed82f5d0ca60bda5 (diff)
downloadsrc-39f2269fcb4873fd97d70af944ec49f4230fadea.tar.gz
src-39f2269fcb4873fd97d70af944ec49f4230fadea.zip
Import ncurses-5.2-20020518 onto the vendor branch.
Obtained from: ftp://dickey.his.com/ncurses/
Notes
Notes: svn path=/vendor/ncurses/dist/; revision=97049
Diffstat (limited to 'contrib/ncurses/test/firework.c')
-rw-r--r--contrib/ncurses/test/firework.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/contrib/ncurses/test/firework.c b/contrib/ncurses/test/firework.c
index 66c1227cf0f0..3d84c4399139 100644
--- a/contrib/ncurses/test/firework.c
+++ b/contrib/ncurses/test/firework.c
@@ -1,11 +1,10 @@
/*
- * $Id: firework.c,v 1.17 2000/09/02 18:41:12 tom Exp $
+ * $Id: firework.c,v 1.20 2002/03/23 21:41:42 tom Exp $
*/
-#include <test.priv.h>
-
-#include <signal.h>
#include <time.h>
+#include <test.priv.h>
+
static int my_bg = COLOR_BLACK;
static void
@@ -19,7 +18,7 @@ static RETSIGTYPE
onsig(int n GCC_UNUSED)
{
cleanup();
- exit(EXIT_FAILURE);
+ ExitProgram(EXIT_FAILURE);
}
static void
@@ -35,7 +34,7 @@ showit(void)
#endif
if (ch == 'q') {
cleanup();
- exit(EXIT_SUCCESS);
+ ExitProgram(EXIT_SUCCESS);
} else if (ch == 's') {
nodelay(stdscr, FALSE);
} else if (ch == ' ') {
@@ -114,8 +113,8 @@ explode(int row, int col)
int
main(
- int argc GCC_UNUSED,
- char *argv[]GCC_UNUSED)
+ int argc GCC_UNUSED,
+ char *argv[]GCC_UNUSED)
{
int j;
int start, end, row, diff, flag = 0, direction;
@@ -154,7 +153,7 @@ main(
attrset(A_NORMAL);
for (row = 0; row < diff; row++) {
mvprintw(LINES - row, start + (row * direction),
- (direction < 0) ? "\\" : "/");
+ (direction < 0) ? "\\" : "/");
if (flag++) {
showit();
erase();