openbsd_network: Add function pointer casts.
To appease Clang.
This commit is contained in:
@@ -117,7 +117,7 @@ pci_intr_establish_openbsd(device_t dev, pci_intr_handle_t ih, int level,
|
|||||||
flags |= INTR_MPSAFE;
|
flags |= INTR_MPSAFE;
|
||||||
|
|
||||||
void* ihp = NULL;
|
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;
|
return ihp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ struct taskq {
|
|||||||
static void
|
static void
|
||||||
task_set(struct task *t, void (*fn)(void *), void *arg)
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user