chiark / gitweb /
api: in constructor function calls, always put the returned object pointer first...
[elogind.git] / src / core / path.c
index fc7069e6c7a9cc2a7090816f712cf693a04e1fd2..1d6c6cc6cb6217a4ae6feda0dcc056f74a37f582 100644 (file)
@@ -71,7 +71,7 @@ int path_spec_watch(PathSpec *s, sd_event_io_handler_t handler) {
                 goto fail;
         }
 
-        r = sd_event_add_io(s->unit->manager->event, s->inotify_fd, EPOLLIN, handler, s, &s->event_source);
+        r = sd_event_add_io(s->unit->manager->event, &s->event_source, s->inotify_fd, EPOLLIN, handler, s);
         if (r < 0)
                 goto fail;