diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-04-29 15:44:31 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-04-29 15:45:16 +0200 |
commit | 93f1bcf40030a9e98bf2b71c177cbea36c64d5c9 (patch) | |
tree | 96f63cc636ffa43f92f805a7f0bac73d48faa18d /src/libsystemd/sd-bus | |
parent | 4c06153f7b7d1af4fc8df4602c1d6714734bf9fd (diff) |
sd-resolve: rework sd-resolve to be callback based, similar in style to sd-bus and sd-event
Diffstat (limited to 'src/libsystemd/sd-bus')
-rw-r--r-- | src/libsystemd/sd-bus/sd-bus.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c index 7074dc7246..dc54e211a4 100644 --- a/src/libsystemd/sd-bus/sd-bus.c +++ b/src/libsystemd/sd-bus/sd-bus.c @@ -3106,9 +3106,7 @@ _public_ int sd_bus_detach_event(sd_bus *bus) { bus->quit_event_source = sd_event_source_unref(bus->quit_event_source); } - if (bus->event) - bus->event = sd_event_unref(bus->event); - + bus->event = sd_event_unref(bus->event); return 1; } |