diff options
Diffstat (limited to 'src/busctl/busctl.c')
-rw-r--r-- | src/busctl/busctl.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/busctl/busctl.c b/src/busctl/busctl.c index c637d084e7..a6dbf0ddb5 100644 --- a/src/busctl/busctl.c +++ b/src/busctl/busctl.c @@ -742,6 +742,9 @@ static void member_hash_func(const Member *m, struct siphash *state) { if (m->name) string_hash_func(m->name, state); + if (m->signature) + string_hash_func(m->signature, state); + if (m->interface) string_hash_func(m->interface, state); } @@ -762,7 +765,11 @@ static int member_compare_func(const Member *x, const Member *y) { if (d != 0) return d; - return strcmp_ptr(x->name, y->name); + d = strcmp_ptr(x->name, y->name); + if (d != 0) + return d; + + return strcmp_ptr(x->signature, y->signature); } static int member_compare_funcp(Member * const *a, Member * const *b) { |