summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/polkit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/polkit.c b/src/shared/polkit.c
index 9ed6ff2717..126096e64f 100644
--- a/src/shared/polkit.c
+++ b/src/shared/polkit.c
@@ -56,7 +56,7 @@ int verify_polkit(
return -EINVAL;
ul = dbus_bus_get_unix_user(c, sender, error);
- if (ul == (unsigned) -1)
+ if (ul == (unsigned long) -1)
return -EINVAL;
/* Shortcut things for root, to avoid the PK roundtrip and dependency */