teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame systemd-git-e191553d1dc80cd6d65d05f0cb29f8967fab6983.patch

Harald Hoyer ea5796
commit e191553d1dc80cd6d65d05f0cb29f8967fab6983
Harald Hoyer ea5796
Author: Kay Sievers <kay.sievers@vrfy.org>
Harald Hoyer ea5796
Date:   Wed Aug 17 19:38:07 2011 +0200
Harald Hoyer ea5796
Harald Hoyer ea5796
    convert int to boolean for dbus_bool_t
Harald Hoyer ea5796
Harald Hoyer ea5796
diff --git a/src/dbus-manager.c b/src/dbus-manager.c
Harald Hoyer ea5796
index ae88895..cfc2afc 100644
Harald Hoyer ea5796
--- a/src/dbus-manager.c
Harald Hoyer ea5796
+++ b/src/dbus-manager.c
Harald Hoyer ea5796
@@ -444,7 +444,7 @@ static DBusMessage *message_from_file_changes(
Harald Hoyer ea5796
         if (carries_install_info >= 0) {
Harald Hoyer ea5796
                 dbus_bool_t b;
Harald Hoyer ea5796
 
Harald Hoyer ea5796
-                b = carries_install_info;
Harald Hoyer ea5796
+                b = !!carries_install_info;
Harald Hoyer ea5796
                 if (!dbus_message_iter_append_basic(&iter, DBUS_TYPE_BOOLEAN, &b))
Harald Hoyer ea5796
                         goto oom;
Harald Hoyer ea5796
         }