summaryrefslogtreecommitdiff
path: root/sys/boot/kshim/bsd_kernel.c
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2016-09-14 11:16:00 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2016-09-14 11:16:00 +0000
commit8393643c270904980d614afede84c9278a3e296e (patch)
treee39fd64f0db285f2e0747b07b471da02ad12bc43 /sys/boot/kshim/bsd_kernel.c
parent276c74b29a5f0cefb19da16a278894ff0bd8f77c (diff)
downloadsrc-test2-8393643c270904980d614afede84c9278a3e296e.tar.gz
src-test2-8393643c270904980d614afede84c9278a3e296e.zip
Notes
Diffstat (limited to 'sys/boot/kshim/bsd_kernel.c')
-rw-r--r--sys/boot/kshim/bsd_kernel.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/boot/kshim/bsd_kernel.c b/sys/boot/kshim/bsd_kernel.c
index ccdec4935de6..36a6d820aa41 100644
--- a/sys/boot/kshim/bsd_kernel.c
+++ b/sys/boot/kshim/bsd_kernel.c
@@ -432,8 +432,8 @@ callout_callback(struct callout *c)
}
mtx_unlock(&mtx_callout);
- if (c->func)
- (c->func) (c->arg);
+ if (c->c_func != NULL)
+ (c->c_func) (c->c_arg);
if (!(c->flags & CALLOUT_RETURNUNLOCKED))
mtx_unlock(c->mtx);
@@ -487,8 +487,8 @@ callout_reset(struct callout *c, int to_ticks,
{
callout_stop(c);
- c->func = func;
- c->arg = arg;
+ c->c_func = func;
+ c->c_arg = arg;
c->timeout = ticks + to_ticks;
mtx_lock(&mtx_callout);
@@ -507,8 +507,8 @@ callout_stop(struct callout *c)
}
mtx_unlock(&mtx_callout);
- c->func = NULL;
- c->arg = NULL;
+ c->c_func = NULL;
+ c->c_arg = NULL;
}
void