From e0cd1d2e842e0574df4acaca1cab2526114b68cd Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Sat, 29 Dec 2018 16:04:46 +0100 Subject: executor: add a clarifying comment --- executor/executor_bsd.h | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit mrf-deployment