-Wall fixes.
This commit is contained in:
parent
645afe7387
commit
aeee88b81a
@ -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 */
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user