[PATCH][PolicyKit] fix an other compiler warning

Danny Kukawka danny.kukawka at web.de
Thu Aug 23 05:24:21 PDT 2007


On Freitag, 3. August 2007, Danny Kukawka wrote:
> this patch fixes the same problem with uid_t as we had with HAL some time
> ago on 64bit architectures in PolicyKit. This time I removed the useless
> check:
>
>    uid == ((unsigned long) -1)
>
> because this is always false on 64bit (comparison is always false due to
> limited range of data type) and because the DBusError from the  
> dbus_bus_get_unix_user() call is set if the above happen.

Commited,

Danny


More information about the hal mailing list