-Wall fixes.

This commit is contained in:
billf 1999-12-12 03:04:17 +00:00
parent 645afe7387
commit aeee88b81a
4 changed files with 6 additions and 6 deletions

View File

@ -179,7 +179,6 @@ makeboard()
void void
gamescore() gamescore()
{ {
extern int Lastscore[];
if (pgames || cgames) { if (pgames || cgames) {
mvprintw(SCORE_Y + 1, SCORE_X + 28, "Games: %3d", pgames); mvprintw(SCORE_Y + 1, SCORE_X + 28, "Games: %3d", pgames);
@ -201,6 +200,7 @@ game()
BOOLEAN flag; BOOLEAN flag;
BOOLEAN compcrib; BOOLEAN compcrib;
compcrib = FALSE;
makedeck(deck); makedeck(deck);
shuffle(deck); shuffle(deck);
if (gamecount == 0) { if (gamecount == 0) {
@ -458,7 +458,7 @@ peg(mycrib)
} }
Tcnt = 0; /* index to table of cards played */ Tcnt = 0; /* index to table of cards played */
sum = 0; /* sum of cards played */ sum = 0; /* sum of cards played */
mego = ugo = FALSE; played = mego = ugo = FALSE;
myturn = !mycrib; myturn = !mycrib;
for (;;) { for (;;) {
last = TRUE; /* enable last flag */ last = TRUE; /* enable last flag */

View File

@ -57,7 +57,6 @@ static const char rcsid[] =
void void
instructions() instructions()
{ {
extern int errno;
struct stat sb; struct stat sb;
union wait pstat; union wait pstat;
pid_t pid; pid_t pid;
@ -75,7 +74,7 @@ instructions()
case 0: case 0:
if (!(path = getenv("PAGER"))) if (!(path = getenv("PAGER")))
path = _PATH_MORE; path = _PATH_MORE;
if (pager = rindex(path, '/')) if ((pager = rindex(path, '/')) != NULL)
++pager; ++pager;
pager = path; pager = path;
execlp(path, pager, _PATH_INSTR, (char *)NULL); execlp(path, pager, _PATH_INSTR, (char *)NULL);

View File

@ -188,8 +188,8 @@ chkscr(scr, inc)
myturn = (scr == &cscore); myturn = (scr == &cscore);
if (inc != 0) { if (inc != 0) {
prpeg(Lastscore[myturn], '.', myturn); prpeg(Lastscore[myturn ? 1 : 0], '.', myturn);
Lastscore[myturn] = *scr; Lastscore[myturn ? 1 : 0] = *scr;
*scr += inc; *scr += inc;
prpeg(*scr, PEG, myturn); prpeg(*scr, PEG, myturn);
refresh(); refresh();

View File

@ -40,6 +40,7 @@ int hascolor = 0;
void set(int, int); void set(int, int);
void standt(int); void standt(int);
void movto(int, int); void movto(int, int);
void sighndl(int);
void sighndl(signo) void sighndl(signo)
int signo; int signo;