summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/atc/input.c4
-rw-r--r--games/larn/tok.c2
-rw-r--r--games/phantasia/misc.c2
-rw-r--r--games/rogue/machdep.c2
-rw-r--r--games/wump/wump.c2
5 files changed, 6 insertions, 6 deletions
diff --git a/games/atc/input.c b/games/atc/input.c
index 88eb603..1b42ac5 100644
--- a/games/atc/input.c
+++ b/games/atc/input.c
@@ -339,10 +339,10 @@ gettoken()
base = shell;
else
base++;
- execl(shell, base, 0);
+ execl(shell, base, (char *)0);
}
else
- execl(_PATH_BSHELL, "sh", 0);
+ execl(_PATH_BSHELL, "sh", (char *)0);
exit(0); /* oops */
}
diff --git a/games/larn/tok.c b/games/larn/tok.c
index 449c7d2..9406dc0 100644
--- a/games/larn/tok.c
+++ b/games/larn/tok.c
@@ -74,7 +74,7 @@ yylex()
{
/* revoke */
setgid(getgid());
- execl("/bin/csh",0); exit(1);
+ execl("/bin/csh",(char *)0); exit(1);
}
wait(0);
if (ic<0) /* error */
diff --git a/games/phantasia/misc.c b/games/phantasia/misc.c
index d0fbecc..f920832 100644
--- a/games/phantasia/misc.c
+++ b/games/phantasia/misc.c
@@ -962,7 +962,7 @@ static char *deathmesg[] =
{
cleanup(FALSE);
execl(_PATH_GAMEPROG, "phantasia", "-s",
- (Wizard ? "-S": (char *) NULL), 0);
+ (Wizard ? "-S": (char *) NULL), (char *)0);
exit(0);
/*NOTREACHED*/
}
diff --git a/games/rogue/machdep.c b/games/rogue/machdep.c
index 14316bc..055056a 100644
--- a/games/rogue/machdep.c
+++ b/games/rogue/machdep.c
@@ -547,7 +547,7 @@ const char *shell;
if (!fork()) {
/* revoke */
setgid(getgid());
- execl(shell, shell, 0);
+ execl(shell, shell, (char *)0);
}
wait(w);
}
diff --git a/games/wump/wump.c b/games/wump/wump.c
index e8cc264..e670533 100644
--- a/games/wump/wump.c
+++ b/games/wump/wump.c
@@ -762,7 +762,7 @@ puff of greasy black smoke! (poof)\n");
err(1, "open %s", _PATH_WUMPINFO);
if (dup2(fd, 0) == -1)
err(1, "dup2");
- (void)execl("/bin/sh", "sh", "-c", pager, NULL);
+ (void)execl("/bin/sh", "sh", "-c", pager, (char *)NULL);
err(1, "exec sh -c %s", pager);
case -1:
err(1, "fork");
OpenPOWER on IntegriCloud