summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-03-17 19:40:44 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-03-17 19:40:44 +0000
commitd56c7210e6997f393bece0935d359c05d01a0efa (patch)
tree9807932348e40879566df0fc405cff1a547d791d /sbin
parente3a77a309cd3e34064bed90fbff49f7c78cfb732 (diff)
Last parameter to execl[e]() functions *must* be cast to a pointer.
Just NULL is not good practise as NULL is theoretically allowed to be an integer rather than a pointer. Use (char *)NULL consistently instead of scattering a few (char *)0 and (void *)NULL into the mix. Prompted by and probably ok deraadt@ millert@ kettenis@ Definitely ok mestre@ ratchov@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/swapctl/swapctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/swapctl/swapctl.c b/sbin/swapctl/swapctl.c
index 6b4cf96746a..2511419e961 100644
--- a/sbin/swapctl/swapctl.c
+++ b/sbin/swapctl/swapctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: swapctl.c,v 1.22 2015/09/15 17:46:23 schwarze Exp $ */
+/* $OpenBSD: swapctl.c,v 1.23 2016/03/17 19:40:43 krw Exp $ */
/* $NetBSD: swapctl.c,v 1.9 1998/07/26 20:23:15 mycroft Exp $ */
/*
@@ -399,7 +399,7 @@ do_fstab(void)
err(1, "vfork");
case 0:
execl(PATH_MOUNT, PATH_MOUNT, fp->fs_spec, spec,
- NULL);
+ (char *)NULL);
err(1, "execl");
}
while (waitpid(pid, &status, 0) < 0)