mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
ofw: Cast function pointer to proper type
clang 15 insists that we call entry() via a function prototype. Rather than copping out and using (...), cast it to the same prototype that's used elsewhere (with tweaks to pointers to make them fit into that prototype). No functional change. Sponsored by: Netflix
This commit is contained in:
parent
10e804b628
commit
fea231d21b
1 changed files with 2 additions and 1 deletions
|
|
@ -772,6 +772,7 @@ OF_chain(void *virt, u_int size, void (*entry)(), void *arg, u_int len)
|
|||
if (size > 0)
|
||||
OF_release(virt, size);
|
||||
#endif
|
||||
entry(0, 0, openfirmware, arg, len);
|
||||
((int (*)(u_long, u_long, u_long, void *, u_long))entry)
|
||||
(0, 0, (u_long)openfirmware, arg, len);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue