freebsd-ports/games/ladder/files/patch-ad
Kris Kennaway c90d3c5b7e Install this setgid games, not setuid games. Respect CC and CFLAGS.
Split the patches into one file per patch, per the porters handbook.
Bump PORTREVISION to not setuid->setgid change.
2001-08-11 07:19:59 +00:00

29 lines
827 B
Text

--- lplay.c.org Tue Nov 11 20:01:51 1997
+++ lplay.c Wed Feb 18 22:33:56 1998
@@ -54,7 +54,7 @@
mvaddstr(row,0,t);
/* find points of release */
- for( s = t; s = strchr(s,CRELEAS); s++ )
+ for( s = t; (s = strchr(s,CRELEAS)); s++ )
{
rel->row = row;
rel->col = s - t;
@@ -67,7 +67,7 @@
/* find lad */
for( row = 0; row < DIMROW; row++ )
- for( s = t = bg[row]; s = strchr(s,CLAD); s++ )
+ for( s = t = bg[row]; (s = strchr(s,CLAD)); s++ )
{
/* nasty, check for CLAD's surrounded by CFREEs */
if( s[-1] != CFREE || s[1] != CFREE )
@@ -433,6 +433,8 @@
else
dir = STOP;
break;
+ default:
+ break;
}
}