* mdocml: same as mandocdb.c rev.
@ 2017-02-09 20:54 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2017-02-09 20:54 UTC (permalink / raw)
To: source
Log Message:
-----------
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)
Modified Files:
--------------
mdocml:
catman.c
Revision Data
-------------
Index: catman.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/catman.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -Lcatman.c -Lcatman.c -u -p -r1.17 -r1.18
--- catman.c
+++ catman.c
@@ -61,10 +61,11 @@ run_mandocd(int sockfd, const char *outt
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");
}
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-02-09 20:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-09 20:54 mdocml: same as mandocdb.c rev schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).