[PATCH][PolicyKit] fix an other compiler warning

Danny Kukawka danny.kukawka at web.de
Fri Aug 3 09:58:15 PDT 2007


Hi,

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.

Danny

 polkit-dbus.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: polkit-fix-uid_t-compilerwarning.diff
Type: text/x-diff
Size: 550 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070803/331c288b/attachment.diff 


More information about the hal mailing list