openbsd_network: Add function pointer casts.

To appease Clang.
This commit is contained in:
Augustin Cavalier
2024-08-24 01:44:41 -04:00
parent 10e9efaa5d
commit fd8ed076b7
2 changed files with 2 additions and 2 deletions
@@ -117,7 +117,7 @@ pci_intr_establish_openbsd(device_t dev, pci_intr_handle_t ih, int level,
flags |= INTR_MPSAFE;
void* ihp = NULL;
bus_setup_intr(dev, irq, flags, NULL, func, arg, &ihp);
bus_setup_intr(dev, irq, flags, NULL, (driver_intr_t*)func, arg, &ihp);
return ihp;
}
@@ -20,7 +20,7 @@ struct taskq {
static void
task_set(struct task *t, void (*fn)(void *), void *arg)
{
TASK_INIT(t, 0, fn, arg);
TASK_INIT(t, 0, (task_fn_t*)fn, arg);
}