summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2015-09-16 09:49:49 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2015-09-16 09:49:49 +0000
commit29e5b066cbebaf75827a4cd04a9d8ffc037b201c (patch)
treeb1938401c5cbeff0ad7b2c01659cd2f9cbdc64a7 /usr.bin/mandoc
parent105470812952233563421c73b86898c6d7618322 (diff)
for portability, use (char *)NULL in execlp(3) as discussed on tech@
(didn't blow up anywhere yet, but better safe than sorry)
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r--usr.bin/mandoc/mandocdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mandocdb.c b/usr.bin/mandoc/mandocdb.c
index 47776c73f09..10c436ad90e 100644
--- a/usr.bin/mandoc/mandocdb.c
+++ b/usr.bin/mandoc/mandocdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mandocdb.c,v 1.148 2015/07/19 05:59:07 schwarze Exp $ */
+/* $OpenBSD: mandocdb.c,v 1.149 2015/09/16 09:49:48 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011-2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -2190,7 +2190,7 @@ dbclose(int real)
return;
case 0:
execlp("cmp", "cmp", "-s",
- tempfilename, MANDOC_DB, NULL);
+ tempfilename, MANDOC_DB, (char *)NULL);
say("", "&exec cmp");
exit(0);
default:
@@ -2215,7 +2215,7 @@ dbclose(int real)
say("", "&fork rm");
return;
case 0:
- execlp("rm", "rm", "-rf", tempfilename, NULL);
+ execlp("rm", "rm", "-rf", tempfilename, (char *)NULL);
say("", "&exec rm");
exit((int)MANDOCLEVEL_SYSERR);
default: