From d56c7210e6997f393bece0935d359c05d01a0efa Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Thu, 17 Mar 2016 19:40:44 +0000 Subject: 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@ --- sbin/swapctl/swapctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin') 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) -- cgit v1.2.3