diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-06-21 22:29:25 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-06-21 22:29:25 +0200 |
commit | 77527da0a02029ce9c5ec86d5db5ea42147a658f (patch) | |
tree | b8601a8d026bf6aef5445cb070f42edf1ce834a4 /src/logind-dbus.c | |
parent | 9418f14772e7e646fe981d45506b3bbce68d6ccf (diff) |
logind: make idle hint logic work
Diffstat (limited to 'src/logind-dbus.c')
-rw-r--r-- | src/logind-dbus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logind-dbus.c b/src/logind-dbus.c index f73307f806..662ffd0be5 100644 --- a/src/logind-dbus.c +++ b/src/logind-dbus.c @@ -130,13 +130,13 @@ static int bus_manager_append_idle_hint(DBusMessageIter *i, const char *property, void *data) { Manager *m = data; - bool b; + dbus_bool_t b; assert(i); assert(property); assert(m); - b = manager_get_idle_hint(m, NULL); + b = manager_get_idle_hint(m, NULL) > 0; if (!dbus_message_iter_append_basic(i, DBUS_TYPE_BOOLEAN, &b)) return -ENOMEM; |