*
* @(#)input.c 8.1 (Berkeley) 5/31/93
* $FreeBSD: src/games/atc/input.c,v 1.7 2000/02/27 23:02:47 mph Exp $
- * $DragonFly: src/games/atc/input.c,v 1.3 2006/08/08 15:03:02 pavalos Exp $
+ * $DragonFly: src/games/atc/input.c,v 1.4 2006/09/09 02:21:49 pavalos Exp $
*/
/*
base = shell;
else
base++;
- execl(shell, base, 0);
+ execl(shell, base, (char *) NULL);
}
else
- execl(_PATH_BSHELL, "sh", 0);
+ execl(_PATH_BSHELL, "sh", (char *) NULL);
exit(0); /* oops */
}
*
* @(#)instr.c 8.1 (Berkeley) 5/31/93
* $FreeBSD: src/games/cribbage/instr.c,v 1.5 1999/12/12 03:04:15 billf Exp $
- * $DragonFly: src/games/cribbage/instr.c,v 1.3 2005/08/03 13:31:00 eirikn Exp $
+ * $DragonFly: src/games/cribbage/instr.c,v 1.4 2006/09/09 02:21:49 pavalos Exp $
*/
#include <sys/wait.h>
if ((pager = rindex(path, '/')) != NULL)
++pager;
pager = path;
- execlp(path, pager, _PATH_INSTR, NULL);
+ execlp(path, pager, _PATH_INSTR, (char *) NULL);
fprintf(stderr, "cribbage: %s.\n", strerror(errno));
_exit(1);
default:
* misc.c Phantasia miscellaneous support routines
*
* $FreeBSD: src/games/phantasia/misc.c,v 1.7 1999/11/16 02:57:34 billf Exp $
- * $DragonFly: src/games/phantasia/misc.c,v 1.6 2006/08/03 16:40:46 swildner Exp $
+ * $DragonFly: src/games/phantasia/misc.c,v 1.7 2006/09/09 02:21:49 pavalos Exp $
*/
#include <string.h>
{
cleanup(FALSE);
execl(_PATH_GAMEPROG, "phantasia", "-s",
- (Wizard ? "-S": (char *) NULL), 0);
+ (Wizard ? "-S": (char *) NULL), (char *) NULL);
exit(0);
/*NOTREACHED*/
}
*
* @(#)machdep.c 8.1 (Berkeley) 5/31/93
* $FreeBSD: src/games/rogue/machdep.c,v 1.6.2.1 2001/12/17 12:43:23 phantom Exp $
- * $DragonFly: src/games/rogue/machdep.c,v 1.3 2006/09/02 19:31:07 pavalos Exp $
+ * $DragonFly: src/games/rogue/machdep.c,v 1.4 2006/09/09 02:21:49 pavalos Exp $
*/
/*
if (!fork()) {
/* revoke */
setgid(getgid());
- execl(shell, shell, 0);
+ execl(shell, shell, (char *) NULL);
}
wait((int *)w);
}
* @(#) Copyright (c) 1989, 1993 The Regents of the University of California. All rights reserved.
* @(#)wump.c 8.1 (Berkeley) 5/31/93
* $FreeBSD: src/games/wump/wump.c,v 1.13.2.1 2000/08/17 06:24:54 jhb Exp $
- * $DragonFly: src/games/wump/wump.c,v 1.4 2005/03/15 20:53:43 dillon Exp $
+ * $DragonFly: src/games/wump/wump.c,v 1.5 2006/09/09 02:21:49 pavalos Exp $
*/
/*
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");