diff --git a/src/libs/compat/openbsd_network/compat/dev/pci/pcivar.h b/src/libs/compat/openbsd_network/compat/dev/pci/pcivar.h index 054ffe6a34..6892d6e3e9 100644 --- a/src/libs/compat/openbsd_network/compat/dev/pci/pcivar.h +++ b/src/libs/compat/openbsd_network/compat/dev/pci/pcivar.h @@ -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; } diff --git a/src/libs/compat/openbsd_network/compat/sys/task.h b/src/libs/compat/openbsd_network/compat/sys/task.h index f4f3eb0df5..b1179995ef 100644 --- a/src/libs/compat/openbsd_network/compat/sys/task.h +++ b/src/libs/compat/openbsd_network/compat/sys/task.h @@ -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); }