summaryrefslogtreecommitdiffstats
path: root/sys/compat/ndis/subr_ndis.c
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2004-09-17 19:54:26 +0000
committerbms <bms@FreeBSD.org>2004-09-17 19:54:26 +0000
commit94e51111dcbcaf37886960c09a9c77394e708d10 (patch)
treecee5e49608574b479eaf48baa6ddab6f95bb641e /sys/compat/ndis/subr_ndis.c
parent5d62ba86f51a87671895b10daefbc1721ba6108e (diff)
downloadFreeBSD-src-94e51111dcbcaf37886960c09a9c77394e708d10.zip
FreeBSD-src-94e51111dcbcaf37886960c09a9c77394e708d10.tar.gz
Fix compiler warnings, when __stdcall is #defined, by adding explicit casts.
These normally only manifest if the ndis compat module is statically compiled into a kernel image by way of 'options NDISAPI'. Submitted by: Dmitri Nikulin Approved by: wpaul PR: kern/71449 MFC after: 1 week
Diffstat (limited to 'sys/compat/ndis/subr_ndis.c')
-rw-r--r--sys/compat/ndis/subr_ndis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/ndis/subr_ndis.c b/sys/compat/ndis/subr_ndis.c
index db167d2..deff521 100644
--- a/sys/compat/ndis/subr_ndis.c
+++ b/sys/compat/ndis/subr_ndis.c
@@ -2875,7 +2875,7 @@ ndis_workfunc(ctx)
__stdcall ndis_proc workfunc;
work = ctx;
- workfunc = work->nwi_func;
+ workfunc = (__stdcall ndis_proc) work->nwi_func;
workfunc(work, work->nwi_ctx);
return;
}
OpenPOWER on IntegriCloud