From 6aef08ce127cc7c7945ab97a6df0c65e2e4feec4 Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Sat, 29 Dec 2018 14:40:52 +0100 Subject: executor: use function argument instead of global variable. --- executor/executor_bsd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor/executor_bsd.h') 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); -- cgit mrf-deployment