chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7361c3b
)
polkit: fix type on comparison
author
Lennart Poettering
<lennart@poettering.net>
Wed, 14 Nov 2012 21:14:53 +0000
(22:14 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 14 Nov 2012 21:21:16 +0000
(22:21 +0100)
src/shared/polkit.c
patch
|
blob
|
history
diff --git
a/src/shared/polkit.c
b/src/shared/polkit.c
index 9ed6ff2717683ce1f4a130a0d7b9f31263349321..126096e64fd2453b799722263f19edee85839525 100644
(file)
--- 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);
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 */
return -EINVAL;
/* Shortcut things for root, to avoid the PK roundtrip and dependency */