summaryrefslogtreecommitdiffstats
path: root/catman.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-09 20:53:33 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-09 20:53:33 +0000
commit5b9da291e12f07f785311d286e2776f927683b2b (patch)
tree9cfcda45560254f0bf5745d8469f129b3308c0fc /catman.c
parentabfc266c9ddf762b50aee6c73be6b252074ef05a (diff)
downloadmandoc-5b9da291e12f07f785311d286e2776f927683b2b.tar.gz
same as mandocdb.c rev. 1.196:
for portability, use (char *)NULL in execlp(3) as discussed on tech@ OpenBSD (didn't blow up anywhere yet, but better safe than sorry)
Diffstat (limited to 'catman.c')
-rw-r--r--catman.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/catman.c b/catman.c
index f9970dad..848d34d4 100644
--- a/catman.c
+++ b/catman.c
@@ -61,10 +61,11 @@ run_mandocd(int sockfd, const char *outtype, const char* defos)
if (snprintf(sockfdstr, sizeof(sockfdstr), "%d", sockfd) == -1)
err(1, "snprintf");
if (defos == NULL)
- execlp("mandocd", "mandocd", "-T", outtype, sockfdstr, NULL);
+ execlp("mandocd", "mandocd", "-T", outtype,
+ sockfdstr, (char *)NULL);
else
execlp("mandocd", "mandocd", "-T", outtype,
- "-I", defos, sockfdstr, NULL);
+ "-I", defos, sockfdstr, (char *)NULL);
err(1, "exec");
}