From: Lennart Poettering Date: Wed, 14 Nov 2012 21:14:53 +0000 (+0100) Subject: polkit: fix type on comparison X-Git-Tag: v196~87 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=02902965822816ec6fcc8a07d008802f17ca1e34;p=elogind.git polkit: fix type on comparison --- diff --git a/src/shared/polkit.c b/src/shared/polkit.c index 9ed6ff271..126096e64 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 */