From aeee88b81a6982928d45c0d80c325cd8372bbab0 Mon Sep 17 00:00:00 2001 From: billf Date: Sun, 12 Dec 1999 03:04:17 +0000 Subject: -Wall fixes. --- games/cribbage/crib.c | 4 ++-- games/cribbage/instr.c | 3 +-- games/cribbage/support.c | 4 ++-- games/grdc/grdc.c | 1 + 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'games') diff --git a/games/cribbage/crib.c b/games/cribbage/crib.c index 9fccc63..fc3c3df 100644 --- a/games/cribbage/crib.c +++ b/games/cribbage/crib.c @@ -179,7 +179,6 @@ makeboard() void gamescore() { - extern int Lastscore[]; if (pgames || cgames) { mvprintw(SCORE_Y + 1, SCORE_X + 28, "Games: %3d", pgames); @@ -201,6 +200,7 @@ game() BOOLEAN flag; BOOLEAN compcrib; + compcrib = FALSE; makedeck(deck); shuffle(deck); if (gamecount == 0) { @@ -458,7 +458,7 @@ peg(mycrib) } Tcnt = 0; /* index to table of cards played */ sum = 0; /* sum of cards played */ - mego = ugo = FALSE; + played = mego = ugo = FALSE; myturn = !mycrib; for (;;) { last = TRUE; /* enable last flag */ diff --git a/games/cribbage/instr.c b/games/cribbage/instr.c index 2e310b9..b329e33 100644 --- a/games/cribbage/instr.c +++ b/games/cribbage/instr.c @@ -57,7 +57,6 @@ static const char rcsid[] = void instructions() { - extern int errno; struct stat sb; union wait pstat; pid_t pid; @@ -75,7 +74,7 @@ instructions() case 0: if (!(path = getenv("PAGER"))) path = _PATH_MORE; - if (pager = rindex(path, '/')) + if ((pager = rindex(path, '/')) != NULL) ++pager; pager = path; execlp(path, pager, _PATH_INSTR, (char *)NULL); diff --git a/games/cribbage/support.c b/games/cribbage/support.c index 639151b..bc22ca6 100644 --- a/games/cribbage/support.c +++ b/games/cribbage/support.c @@ -188,8 +188,8 @@ chkscr(scr, inc) myturn = (scr == &cscore); if (inc != 0) { - prpeg(Lastscore[myturn], '.', myturn); - Lastscore[myturn] = *scr; + prpeg(Lastscore[myturn ? 1 : 0], '.', myturn); + Lastscore[myturn ? 1 : 0] = *scr; *scr += inc; prpeg(*scr, PEG, myturn); refresh(); diff --git a/games/grdc/grdc.c b/games/grdc/grdc.c index d5dc086..881428f 100644 --- a/games/grdc/grdc.c +++ b/games/grdc/grdc.c @@ -40,6 +40,7 @@ int hascolor = 0; void set(int, int); void standt(int); void movto(int, int); +void sighndl(int); void sighndl(signo) int signo; -- cgit v1.1