aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@freebsd.org>2018-12-29 14:40:52 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-12-29 19:17:28 +0100
commit6aef08ce127cc7c7945ab97a6df0c65e2e4feec4 (patch)
tree0af67537066589649fe34d5a5a436570f195c175
parenta40793d7a5ec79bb550bc8599221880e6aba071b (diff)
executor: use function argument instead of global variable.
-rw-r--r--executor/executor_bsd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/executor_bsd.h b/executor/executor_bsd.h
index b1aaa8163..c6b6d128c 100644
--- a/executor/executor_bsd.h
+++ b/executor/executor_bsd.h
@@ -91,7 +91,7 @@ static void cover_open(cover_t* cov)
static void cover_enable(cover_t* cov, bool collect_comps)
{
- int kcov_mode = flag_collect_comps ? KCOV_MODE_TRACE_CMP : KCOV_MODE_TRACE_PC;
+ int kcov_mode = collect_comps ? KCOV_MODE_TRACE_CMP : KCOV_MODE_TRACE_PC;
#if GOOS_freebsd
if (ioctl(cov->fd, KIOENABLE, kcov_mode))
exitf("cover enable write trace failed, mode=%d", kcov_mode);