summaryrefslogtreecommitdiff
path: root/src/login/logind-user-dbus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-09 16:25:47 +0100
committerLennart Poettering <lennart@poettering.net>2015-01-09 18:35:36 +0100
commit8cb4ab0058e51f1fba93683d145ef95f97c2fa86 (patch)
tree022bbd937efd224d8de1e2c5db66331a6149ed74 /src/login/logind-user-dbus.c
parent309a29dfd24f4175de334ca1593e3fe2436ab082 (diff)
logind: unify how we cast between uid_t and pointers for hashmap keys
Diffstat (limited to 'src/login/logind-user-dbus.c')
-rw-r--r--src/login/logind-user-dbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-user-dbus.c b/src/login/logind-user-dbus.c
index 717740ad04..bff42e89ad 100644
--- a/src/login/logind-user-dbus.c
+++ b/src/login/logind-user-dbus.c
@@ -270,7 +270,7 @@ int user_object_find(sd_bus *bus, const char *path, const char *interface, void
if (r < 0)
return 0;
- user = hashmap_get(m->users, ULONG_TO_PTR((unsigned long) uid));
+ user = hashmap_get(m->users, UID_TO_PTR(uid));
if (!user)
return 0;