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
commit5285e9a469a97baf1942e9f82c3701062791be26 (patch)
treea5ee64869d5249b224e4a941239b17e5ec4e6f72 /pw/pw.c
parentfb83544b743f039f2358452e7bd9d9fbaa35ad97 (diff)
downloadpw-darwin-5285e9a469a97baf1942e9f82c3701062791be26.tar.gz
pw-darwin-5285e9a469a97baf1942e9f82c3701062791be26.tar.zst
pw-darwin-5285e9a469a97baf1942e9f82c3701062791be26.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;