$OpenBSD: patch-unix_c,v 1.2 2007/12/20 15:47:18 ajacoutot Exp $ --- unix.c.orig Thu Feb 13 16:05:44 2003 +++ unix.c Thu Dec 20 16:46:01 2007 @@ -128,9 +128,9 @@ execsh(char *args, char *cmd, Bufblock *buf, Envy *e) if (e) exportenv(e); if(shflags) - execl(shell, shellname, shflags, args, 0); + execl(shell, shellname, shflags, args, (void *)NULL); else - execl(shell, shellname, args, 0); + execl(shell, shellname, args, (void *)NULL); mkperror(shell); _exit(1); } @@ -193,9 +193,9 @@ pipecmd(char *cmd, Envy *e, int *fd) if(e) exportenv(e); if(shflags) - execl(shell, shellname, shflags, "-c", cmd, 0); + execl(shell, shellname, shflags, "-c", cmd, (void *)NULL); else - execl(shell, shellname, "-c", cmd, 0); + execl(shell, shellname, "-c", cmd, (void *)NULL); mkperror(shell); _exit(1); }