summaryrefslogtreecommitdiff
path: root/usr.bin/sendbug/sendbug.c
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 /usr.bin/sendbug/sendbug.c
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 'usr.bin/sendbug/sendbug.c')
-rw-r--r--usr.bin/sendbug/sendbug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sendbug/sendbug.c b/usr.bin/sendbug/sendbug.c
index dc39073328e..bba83035ae1 100644
--- a/usr.bin/sendbug/sendbug.c
+++ b/usr.bin/sendbug/sendbug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sendbug.c,v 1.73 2015/10/26 13:12:10 deraadt Exp $ */
+/* $OpenBSD: sendbug.c,v 1.74 2016/03/17 19:40:43 krw Exp $ */
/*
* Written by Ray Lai <ray@cyth.net>.
@@ -337,7 +337,7 @@ sendmail(const char *pathname)
}
close(filedes[0]);
execl(_PATH_SENDMAIL, "sendmail",
- "-oi", "-t", (void *)NULL);
+ "-oi", "-t", (char *)NULL);
warn("sendmail error: unsent report in %s",
pathname);
return (-1);