X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Ffirework.c;h=2c409d835a2be32b3a02ba9d8b2e03e8af5623eb;hp=62f4637b57470140ed34915c0aa52f7a59c45f45;hb=52aa842907b31bb56fb5133da3f023b45bd4355f;hpb=92e187a3459ab7ce1613a3684ca6642447c73620 diff --git a/test/firework.c b/test/firework.c index 62f4637b..2c409d83 100644 --- a/test/firework.c +++ b/test/firework.c @@ -26,13 +26,13 @@ * authorization. * ****************************************************************************/ /* - * $Id: firework.c,v 1.26 2010/05/01 19:12:26 tom Exp $ + * $Id: firework.c,v 1.27 2010/11/13 20:58:25 tom Exp $ */ #include #include -static int my_bg = COLOR_BLACK; +static short my_bg = COLOR_BLACK; static void cleanup(void) @@ -70,7 +70,7 @@ showit(void) } } -static int +static short get_colour(chtype *bold) { int attr; @@ -81,7 +81,7 @@ get_colour(chtype *bold) *bold = A_BOLD; attr &= 7; } - return (attr); + return (short) (attr); } static @@ -162,7 +162,7 @@ main( } curs_set(0); - seed = time((time_t *) 0); + seed = (unsigned) time((time_t *) 0); srand(seed); for (;;) { do { @@ -187,7 +187,7 @@ main( showit(); flag = 0; } - seed = time((time_t *) 0); + seed = (unsigned) time((time_t *) 0); srand(seed); explode(LINES - row, start + (diff * direction)); erase();