summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/bus-control.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2015-08-27 16:22:33 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2015-08-27 16:29:01 +0200
commit19bee5c3674cda184443509b49b9415f599349ab (patch)
treeee97e81f7463870d829321ed3e852580d7437b88 /src/libsystemd/sd-bus/bus-control.c
parent21e654dae99b3558ec7d7f6dfeb1c4c28b1ecf25 (diff)
sd-bus: rename bloom-tag to arg0-has
We use dashes in our bloom-tags. Make sure the newly introduced arg0has tag uses the same style. Note that the external dbus-tags don't use dashes, though. They are defined in the spec and we need to keep compatibility there.
Diffstat (limited to 'src/libsystemd/sd-bus/bus-control.c')
-rw-r--r--src/libsystemd/sd-bus/bus-control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd/sd-bus/bus-control.c b/src/libsystemd/sd-bus/bus-control.c
index ad83446254..ef3e087b28 100644
--- a/src/libsystemd/sd-bus/bus-control.c
+++ b/src/libsystemd/sd-bus/bus-control.c
@@ -1309,9 +1309,9 @@ int bus_add_match_internal_kernel(
}
case BUS_MATCH_ARG_HAS...BUS_MATCH_ARG_HAS_LAST: {
- char buf[sizeof("arg")-1 + 2 + sizeof("has")];
+ char buf[sizeof("arg")-1 + 2 + sizeof("-has")];
- xsprintf(buf, "arg%ihas", c->type - BUS_MATCH_ARG_HAS);
+ xsprintf(buf, "arg%i-has", c->type - BUS_MATCH_ARG_HAS);
bloom_add_pair(bloom, bus->bloom_size, bus->bloom_n_hash, buf, c->value_str);
using_bloom = true;
break;