diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-09 20:53:33 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-09 20:53:33 +0000 |
commit | 5b9da291e12f07f785311d286e2776f927683b2b (patch) | |
tree | 9cfcda45560254f0bf5745d8469f129b3308c0fc /catman.c | |
parent | abfc266c9ddf762b50aee6c73be6b252074ef05a (diff) | |
download | mandoc-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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"); } |