diff options
author | 2016-03-17 19:40:43 +0000 | |
---|---|---|
committer | 2016-03-17 19:40:43 +0000 | |
commit | 534084640310a3b73784adb5e68a3695b1c4a21c (patch) | |
tree | 6f4f33f996feb61f08988b759dea9f9a06a42f9a /regress/sys/kern/kqueue/kqueue-process.c | |
parent | Set mnt_data to NULL after freeing the file system specific mount point. (diff) | |
download | wireguard-openbsd-534084640310a3b73784adb5e68a3695b1c4a21c.tar.xz wireguard-openbsd-534084640310a3b73784adb5e68a3695b1c4a21c.zip |
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 'regress/sys/kern/kqueue/kqueue-process.c')
-rw-r--r-- | regress/sys/kern/kqueue/kqueue-process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/sys/kern/kqueue/kqueue-process.c b/regress/sys/kern/kqueue/kqueue-process.c index d4dfa8d02e9..d62b2699d18 100644 --- a/regress/sys/kern/kqueue/kqueue-process.c +++ b/regress/sys/kern/kqueue/kqueue-process.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kqueue-process.c,v 1.8 2015/08/13 10:26:54 uebayasi Exp $ */ +/* $OpenBSD: kqueue-process.c,v 1.9 2016/03/17 19:40:43 krw Exp $ */ /* * Written by Artur Grabowski <art@openbsd.org> 2002 Public Domain */ @@ -151,7 +151,7 @@ process_child(void) case 0: /* sync 2.1 */ pause(); - execl("/usr/bin/true", "true", (void *)NULL); + execl("/usr/bin/true", "true", (char *)NULL); err(1, "execl(true)"); } |