bus: fix bus_print_property() to use "int" for booleans

We always use "int" if we retrieve boolean values from sd-bus, as "bool"
is only a single byte, but full int on va-args.

Thanks to Werner Fink for the report!
This commit is contained in:
David Herrmann
2014-09-18 13:28:28 +02:00
parent 77c10205bb
commit c2fa048c4a
Notes: Lennart Poettering 2014-10-24 18:28:45 +02:00
Backport: bugfix

View File

@@ -631,7 +631,7 @@ int bus_print_property(const char *name, sd_bus_message *property, bool all) {
}
case SD_BUS_TYPE_BOOLEAN: {
bool b;
int b;
r = sd_bus_message_read_basic(property, type, &b);
if (r < 0)