aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@basename.se>2019-01-17 07:52:12 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-01-19 18:19:10 +0100
commitd2bc932090d1b341921e50191fe1568820f05ca5 (patch)
tree42746bbe86b51a2ec884a1ee180cb19de6a20f49 /executor
parent528f444be9e838a093db13244ce689d4e70b5856 (diff)
executor: unbreak on OpenBSD
Commit b5df78dc ("all: support extra coverage") broke the executor on OpenBSD: executor/executor.cc:61:11: error: unused variable 'kExtraCoverSize' [-Werror,-Wunused-const-variable] const int kExtraCoverSize = 256 << 10;
Diffstat (limited to 'executor')
-rw-r--r--executor/common_linux.h1
-rw-r--r--executor/executor.cc1
2 files changed, 1 insertions, 1 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h
index 78d1e82a1..b6860e30d 100644
--- a/executor/common_linux.h
+++ b/executor/common_linux.h
@@ -9,6 +9,7 @@
#include <unistd.h>
#if SYZ_EXECUTOR
+const int kExtraCoverSize = 256 << 10;
struct cover_t;
static void cover_reset(cover_t* cov);
#endif
diff --git a/executor/executor.cc b/executor/executor.cc
index a0357c188..d1d1f2694 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -58,7 +58,6 @@ const int kOutPipeFd = kMaxFd - 2; // remapped from stdout
const int kCoverFd = kOutPipeFd - kMaxThreads;
const int kMaxArgs = 9;
const int kCoverSize = 256 << 10;
-const int kExtraCoverSize = 256 << 10;
const int kFailStatus = 67;
const int kRetryStatus = 69;
const int kErrorStatus = 68;