xf86AddGeneralHandler returns an opaque pointer, not a function pointer.
Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
#if HAVE_UDEV
struct udev_monitor *uevent_monitor;
- InputHandlerProc uevent_handler;
+ pointer uevent_handler;
#endif
struct {
return;
}
- sna->uevent_handler =
- xf86AddGeneralHandler(udev_monitor_get_fd(mon),
- sna_handle_uevents,
- scrn);
+ sna->uevent_handler = xf86AddGeneralHandler(udev_monitor_get_fd(mon),
+ sna_handle_uevents, scrn);
if (!sna->uevent_handler) {
udev_monitor_unref(mon);
udev_unref(u);
unsigned debug_flush;
#if HAVE_UDEV
struct udev_monitor *uevent_monitor;
- InputHandlerProc uevent_handler;
+ pointer uevent_handler;
#endif
Bool has_prime_vmap_flush;
} intel_screen_private;
return;
}
- intel->uevent_handler =
- xf86AddGeneralHandler(udev_monitor_get_fd(mon),
- I830HandleUEvents,
- scrn);
+ intel->uevent_handler = xf86AddGeneralHandler(udev_monitor_get_fd(mon),
+ I830HandleUEvents, scrn);
if (!intel->uevent_handler) {
udev_monitor_unref(mon);
udev_unref(u);