summaryrefslogtreecommitdiff
path: root/src/logind-dbus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-21 22:29:25 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-21 22:29:25 +0200
commit77527da0a02029ce9c5ec86d5db5ea42147a658f (patch)
treeb8601a8d026bf6aef5445cb070f42edf1ce834a4 /src/logind-dbus.c
parent9418f14772e7e646fe981d45506b3bbce68d6ccf (diff)
logind: make idle hint logic work
Diffstat (limited to 'src/logind-dbus.c')
-rw-r--r--src/logind-dbus.c4
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;