summaryrefslogtreecommitdiffstats
path: root/pw/pw.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2001-07-09 09:24:06 +0000
committerBrian Somers <brian@FreeBSD.org>2001-07-09 09:24:06 +0000
commit5442276cd021d5fe2943c1c124bf45f6ca8f863e (patch)
tree087366383376badfe4eb3d5aefe50299e41a9afd /pw/pw.c
parentd3b365d80ac966d7ad94c410b53a478e566d347b (diff)
downloadpw-darwin-5442276cd021d5fe2943c1c124bf45f6ca8f863e.tar.gz
pw-darwin-5442276cd021d5fe2943c1c124bf45f6ca8f863e.tar.zst
pw-darwin-5442276cd021d5fe2943c1c124bf45f6ca8f863e.zip
Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
Diffstat (limited to 'pw/pw.c')
-rw-r--r--pw/pw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw/pw.c b/pw/pw.c
index b59b9f9..01ba43a 100644
--- a/pw/pw.c
+++ b/pw/pw.c
@@ -248,7 +248,7 @@ main(int argc, char *argv[])
warn("fork()");
else if (pid == 0) {
/* Is make anywhere else? */
- execlp("/usr/bin/make", "make", NULL);
+ execlp("/usr/bin/make", "make", (char *)NULL);
_exit(1);
} else {
int i;