alsa-udev: avoid meth with void pointers

This commit is contained in:
Wim Taymans 2022-10-06 19:34:09 +02:00
parent 8e43c41ac1
commit 0397d7b2be

View file

@ -675,8 +675,8 @@ static void impl_on_notify_events(struct spa_source *source)
struct device *device; struct device *device;
event = (const struct inotify_event *) p; event = (const struct inotify_event *) p;
spa_assert_se(e - p >= (ptrdiff_t)sizeof(struct inotify_event) && spa_assert_se(SPA_PTRDIFF(e, p) >= (ptrdiff_t)sizeof(struct inotify_event) &&
e - p - sizeof(struct inotify_event) >= event->len && SPA_PTRDIFF(e, p) - sizeof(struct inotify_event) >= event->len &&
"bad event from kernel"); "bad event from kernel");
/* Device becomes accessible or not busy */ /* Device becomes accessible or not busy */