} EpollData;
static dbus_bool_t add_watch(DBusWatch *watch, void *data) {
- EpollData _cleanup_free_ *e = NULL;
- struct epoll_event ev = { .data.ptr = e };
+ _cleanup_free_ EpollData *e = NULL;
+ struct epoll_event ev = {};
assert(watch);
e->is_timeout = false;
ev.events = bus_flags_to_events(watch);
+ ev.data.ptr = e;
if (epoll_ctl(PTR_TO_INT(data), EPOLL_CTL_ADD, e->fd, &ev) < 0) {
}
static void remove_watch(DBusWatch *watch, void *data) {
- EpollData _cleanup_free_ *e = NULL;
+ _cleanup_free_ EpollData *e = NULL;
assert(watch);
}
static void remove_timeout(DBusTimeout *timeout, void *data) {
- EpollData _cleanup_free_ *e = NULL;
+ _cleanup_free_ EpollData *e = NULL;
assert(timeout);