diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-09-29 17:57:34 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-09-29 17:57:34 +0200 |
commit | 532f808fd15ec2cd91777ab3ad9afce2670ebac5 (patch) | |
tree | 18b27f0cd75a6648728c17e7809ba238f0710851 /src/libsystemd/sd-bus/sd-bus.c | |
parent | sd-bus: when showing brief message info show error name in debug out put too (diff) | |
download | systemd-532f808fd15ec2cd91777ab3ad9afce2670ebac5.tar.xz systemd-532f808fd15ec2cd91777ab3ad9afce2670ebac5.zip |
sd-bus: drop match cookie concept
THe match cookie was used by kdbus to identify matches we install
uniquely. But given that kdbus is gone, the cookie serves no process
anymore, let's kill it.
Diffstat (limited to 'src/libsystemd/sd-bus/sd-bus.c')
-rw-r--r-- | src/libsystemd/sd-bus/sd-bus.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c index 5ce1cdeb0f..621fabb015 100644 --- a/src/libsystemd/sd-bus/sd-bus.c +++ b/src/libsystemd/sd-bus/sd-bus.c @@ -2858,7 +2858,6 @@ _public_ int sd_bus_add_match( } s->match_callback.callback = callback; - s->match_callback.cookie = ++bus->match_cookie; if (bus->bus_client) { enum bus_match_scope scope; @@ -2878,7 +2877,7 @@ _public_ int sd_bus_add_match( goto finish; } - r = bus_add_match_internal(bus, s->match_callback.match_string, components, n_components, s->match_callback.cookie); + r = bus_add_match_internal(bus, s->match_callback.match_string, components, n_components); if (r < 0) goto finish; |