aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorBill Fumerola <billf@FreeBSD.org>1999-12-12 03:04:17 +0000
committerBill Fumerola <billf@FreeBSD.org>1999-12-12 03:04:17 +0000
commit8828590563b92b41a478c67c5905a37a525a2f04 (patch)
tree366845a01e9165f129be54865eefbf157ec5855f /games
parent3d0da07c1e77652503f23a449761a7cb69ba4a9c (diff)
Notes
Diffstat (limited to 'games')
-rw-r--r--games/cribbage/crib.c4
-rw-r--r--games/cribbage/instr.c3
-rw-r--r--games/cribbage/support.c4
-rw-r--r--games/grdc/grdc.c1
4 files changed, 6 insertions, 6 deletions
diff --git a/games/cribbage/crib.c b/games/cribbage/crib.c
index 9fccc6335e743..fc3c3df6ad68f 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 2e310b9136d74..b329e332fea8b 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 639151b81bbaa..bc22ca63826e7 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 d5dc086748ffe..881428f0e2a73 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;