]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#624] Compilation fix for Alpine linux
authorTomek Mrugalski <tomasz@isc.org>
Thu, 23 May 2019 19:00:24 +0000 (21:00 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Thu, 23 May 2019 19:00:24 +0000 (21:00 +0200)
src/bin/perfdhcp/test_control.cc

index 9ae1e9dd4551d377528393e2040100cd4f8a55a3..d63958586779e1ad288ccc70af4c890c3d6ef143 100644 (file)
@@ -1011,9 +1011,7 @@ TestControl::runWrapped(bool do_stop /*= false */) const {
         if (pid < 0) {
             isc_throw(Unexpected, "unable to fork");
         } else if (pid == 0) {
-            execlp(options_.getWrapped().c_str(),
-                   do_stop ? "stop" : "start",
-                   NULL);
+            execlp(options_.getWrapped().c_str(), do_stop ? "stop" : "start", (void*)0);
         }
     }
 }