]> git.cameronkatri.com Git - mandoc.git/commitdiff
for portability, use (char *)NULL in execlp(3) as discussed on tech@ OpenBSD
authorIngo Schwarze <schwarze@openbsd.org>
Wed, 16 Sep 2015 09:50:29 +0000 (09:50 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Wed, 16 Sep 2015 09:50:29 +0000 (09:50 +0000)
(didn't blow up anywhere yet, but better safe than sorry)

mandocdb.c

index 44cf0128df0e6650dc8409499a4fa65bc0d561f0..046806966da18701f80b95659b7de2785643b056 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: mandocdb.c,v 1.195 2015/07/19 06:05:16 schwarze Exp $ */
+/*     $Id: mandocdb.c,v 1.196 2015/09/16 09:50:29 schwarze Exp $ */
 /*
  * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2011-2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -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: