summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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");
}