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
This commit is contained in:
parent
9de7d9ac45
commit
6120a003b4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135399
@ -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;
|
||||
}
|
||||
|
@ -1694,7 +1694,7 @@ ntoskrnl_run_dpc(arg)
|
||||
uint8_t irql;
|
||||
|
||||
dpc = arg;
|
||||
dpcfunc = (kdpc_func)dpc->k_deferedfunc;
|
||||
dpcfunc = (__stdcall kdpc_func) dpc->k_deferedfunc;
|
||||
irql = ntoskrnl_raise_irql(DISPATCH_LEVEL);
|
||||
dpcfunc(dpc, dpc->k_deferredctx, dpc->k_sysarg1, dpc->k_sysarg2);
|
||||
ntoskrnl_lower_irql(irql);
|
||||
|
Loading…
Reference in New Issue
Block a user