aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@freebsd.org>2018-12-29 16:04:46 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-12-29 19:17:28 +0100
commite0cd1d2e842e0574df4acaca1cab2526114b68cd (patch)
tree220ef714a836f3841ac0d45ea524cea655989a6f /executor
parent6aef08ce127cc7c7945ab97a6df0c65e2e4feec4 (diff)
executor: add a clarifying comment
Diffstat (limited to 'executor')
-rw-r--r--executor/executor_bsd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/executor/executor_bsd.h b/executor/executor_bsd.h
index c6b6d128c..c1b5bddb6 100644
--- a/executor/executor_bsd.h
+++ b/executor/executor_bsd.h
@@ -93,9 +93,11 @@ static void cover_enable(cover_t* cov, bool collect_comps)
{
int kcov_mode = collect_comps ? KCOV_MODE_TRACE_CMP : KCOV_MODE_TRACE_PC;
#if GOOS_freebsd
+ // FreeBSD uses an int as the third argument.
if (ioctl(cov->fd, KIOENABLE, kcov_mode))
exitf("cover enable write trace failed, mode=%d", kcov_mode);
#elif GOOS_openbsd
+ // OpenBSD uses an pointer to an int as the third argument.
if (ioctl(cov->fd, KIOENABLE, &kcov_mode))
exitf("cover enable write trace failed, mode=%d", kcov_mode);
#endif