1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-31 16:21:26 +03:00

sd-bus: drop unused parameters from bus_add_match_internal()

We don't need the match components anymore, since kdbus is gone, hence
drop it.
This commit is contained in:
Lennart Poettering 2017-12-18 20:34:21 +01:00
parent 98c5bbc85d
commit 0259b87f5e
3 changed files with 3 additions and 7 deletions

View File

@ -814,9 +814,7 @@ _public_ int sd_bus_get_owner_creds(sd_bus *bus, uint64_t mask, sd_bus_creds **r
int bus_add_match_internal(
sd_bus *bus,
const char *match,
struct bus_match_component *components,
unsigned n_components) {
const char *match) {
const char *e;

View File

@ -22,7 +22,5 @@
#include "sd-bus.h"
#include "bus-match.h"
int bus_add_match_internal(sd_bus *bus, const char *match, struct bus_match_component *components, unsigned n_components);
int bus_add_match_internal(sd_bus *bus, const char *match);
int bus_remove_match_internal(sd_bus *bus, const char *match);

View File

@ -2980,7 +2980,7 @@ _public_ int sd_bus_add_match(
goto finish;
}
r = bus_add_match_internal(bus, s->match_callback.match_string, components, n_components);
r = bus_add_match_internal(bus, s->match_callback.match_string);
if (r < 0)
goto finish;