if (!d)
return;
- assert(!d->event_sources);
+ assert(LIST_IS_EMPTY(d->event_sources));
if (d->fd >= 0) {
LIST_REMOVE(to_close, e->inode_data_to_close, d);
if (!d)
return;
- if (d->event_sources)
+ if (!LIST_IS_EMPTY(d->event_sources))
return;
inotify_data = d->inotify_data;
n_event_max = MALLOC_ELEMENTSOF(e->event_queue);
/* If we still have inotify data buffered, then query the other fds, but don't wait on it */
- if (e->inotify_data_buffered)
+ if (!LIST_IS_EMPTY(e->inotify_data_buffered))
timeout = 0;
for (;;) {