chiark / gitweb /
api: in constructor function calls, always put the returned object pointer first...
[elogind.git] / src / core / device.c
index c7bc1e25e7bd5225a9ce089f79fb3244baf19be1..d17b2dfdd7410b30d5ef725399969022c3c565c4 100644 (file)
@@ -534,7 +534,7 @@ static int device_enumerate(Manager *m) {
                 if (r < 0)
                         goto fail;
 
-                r = sd_event_add_io(m->event, udev_monitor_get_fd(m->udev_monitor), EPOLLIN, device_dispatch_io, m, &m->udev_event_source);
+                r = sd_event_add_io(m->event, &m->udev_event_source, udev_monitor_get_fd(m->udev_monitor), EPOLLIN, device_dispatch_io, m);
                 if (r < 0)
                         goto fail;
         }