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.
}
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;
}
static void add_bloom_arg_has(void *data, size_t size, unsigned n_hash, unsigned i, const char *t) {
- char buf[sizeof("arg")-1 + 2 + sizeof("has")];
+ char buf[sizeof("arg")-1 + 2 + sizeof("-has")];
char *e;
assert(data);
*(e++) = '0' + (char) (i % 10);
}
- strcpy(e, "has");
+ strcpy(e, "-has");
bloom_add_pair(data, size, n_hash, buf, t);
}