sandbox: missing include
authorRobert Swiecki <robert@swiecki.net>
Fri, 16 Feb 2018 14:24:24 +0000 (15:24 +0100)
committerRobert Swiecki <robert@swiecki.net>
Fri, 16 Feb 2018 14:24:24 +0000 (15:24 +0100)
cmdline.cc
sandbox.cc

index 1c5be69..8ca6464 100644 (file)
@@ -424,8 +424,7 @@ std::unique_ptr<nsjconf_t> parseArgs(int argc, char* argv[]) {
                        nsjconf->logfile = optarg;
                        break;
                case 'L':
-                       nsjconf->logfile =
-                           "/dev/fd/" + std::to_string(strtol(optarg, NULL, 10));
+                       nsjconf->logfile = "/dev/fd/" + std::to_string(strtol(optarg, NULL, 10));
                        break;
                case 'd':
                        nsjconf->daemonize = true;
index 4a08342..23cd43a 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/filter.h>
 #include <linux/seccomp.h>
 #include <stddef.h>
+#include <stdlib.h>
 #include <sys/prctl.h>
 
 extern "C" {