summaryrefslogtreecommitdiffstats
path: root/usr.bin/m4
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2004-05-18 15:53:58 +0000
committerstefanf <stefanf@FreeBSD.org>2004-05-18 15:53:58 +0000
commitf4d682445c8ea834a5a3f044a6cbbd1b33c00737 (patch)
tree3c3b188e6c2503c4c8a2aad9d419dc8a374e3fba /usr.bin/m4
parent3690fa9bf90a213884177d7788a2e85a7482fe18 (diff)
downloadFreeBSD-src-f4d682445c8ea834a5a3f044a6cbbd1b33c00737.zip
FreeBSD-src-f4d682445c8ea834a5a3f044a6cbbd1b33c00737.tar.gz
Don't depend on NULL's expansion being a pointer, cast it before it is passed
to variadic functions. Approved by: das (mentor)
Diffstat (limited to 'usr.bin/m4')
-rw-r--r--usr.bin/m4/gnum4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/m4/gnum4.c b/usr.bin/m4/gnum4.c
index 85a937c..8940bb8 100644
--- a/usr.bin/m4/gnum4.c
+++ b/usr.bin/m4/gnum4.c
@@ -499,7 +499,7 @@ doesyscmd(const char *cmd)
(void) close(p[0]);
(void) dup2(p[1], 1);
(void) close(p[1]);
- execl(_PATH_BSHELL, "sh", "-c", cmd, NULL);
+ execl(_PATH_BSHELL, "sh", "-c", cmd, (char *)NULL);
exit(1);
default:
/* Read result in two stages, since m4's buffer is
OpenPOWER on IntegriCloud