chiark / gitweb /
logind: interpret the can_sleep return value properly
authorMatthias Clasen <mclasen@redhat.com>
Fri, 1 Jun 2012 01:50:23 +0000 (21:50 -0400)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Jun 2012 13:58:21 +0000 (15:58 +0200)
commit398f7c881b90d2ca4edafcb60dba3822eb9f73eb
treeed9c043d6629a68c1d206d33c04565b2ce24e89c
parentddcbc8737873ca1904562d7d3ca3de9946e2f889
logind: interpret the can_sleep return value properly

can_sleep() returns a boolean, so a return value > 0 does not
mean 'na'.
src/login/logind-dbus.c