* mdocml: for portability, use (char *)NULL in execlp(3) as discussed on
@ 2015-09-16 9:50 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2015-09-16 9:50 UTC (permalink / raw)
To: source
Log Message:
-----------
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:
mandocdb.c
Revision Data
-------------
Index: mandocdb.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/mandocdb.c,v
retrieving revision 1.195
retrieving revision 1.196
diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.195 -r1.196
--- mandocdb.c
+++ mandocdb.c
@@ -2208,7 +2208,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:
@@ -2233,7 +2233,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:
--
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:[~2015-09-16 9:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-16 9:50 mdocml: for portability, use (char *)NULL in execlp(3) as discussed on 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).