diff options
| author | Michael Tuexen <tuexen@freebsd.org> | 2018-12-29 14:40:52 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-12-29 19:17:28 +0100 |
| commit | 6aef08ce127cc7c7945ab97a6df0c65e2e4feec4 (patch) | |
| tree | 0af67537066589649fe34d5a5a436570f195c175 /executor | |
| parent | a40793d7a5ec79bb550bc8599221880e6aba071b (diff) | |
executor: use function argument instead of global variable.
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/executor_bsd.h | 2 |
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); |
