chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core: check for return value from get_process_state
[elogind.git]
/
src
/
core
/
dbus-client-track.c
diff --git
a/src/core/dbus-client-track.c
b/src/core/dbus-client-track.c
index d98f21d46f51f2ec19a6d876d1d9dfd721adca80..07dfea49e63d11e517659ed99c46ccdceddcff11 100644
(file)
--- a/
src/core/dbus-client-track.c
+++ b/
src/core/dbus-client-track.c
@@
-22,10
+22,10
@@
#include "bus-util.h"
#include "dbus-client-track.h"
#include "bus-util.h"
#include "dbus-client-track.h"
-static unsigned
tracked_client_hash(const void *a
) {
+static unsigned
long tracked_client_hash(const void *a, const uint8_t hash_key[HASH_KEY_SIZE]
) {
const BusTrackedClient *x = a;
const BusTrackedClient *x = a;
- return string_hash_func(x->name
) ^ PTR_TO_UINT(x->bus
);
+ return string_hash_func(x->name
, hash_key) ^ trivial_hash_func(x->bus, hash_key
);
}
static int tracked_client_compare(const void *a, const void *b) {
}
static int tracked_client_compare(const void *a, const void *b) {