diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-09-18 13:28:28 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-09-18 13:57:13 +0200 |
commit | c2fa048c4a70c8386c6d8fe939e5ea9edecf1e98 (patch) | |
tree | 41b1c7978d966bafa65215d3a470b9c90a734788 /src/libsystemd/sd-bus/bus-util.c | |
parent | 77c10205bb337585c320e91af4b416f2dcc6faba (diff) |
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!
Diffstat (limited to 'src/libsystemd/sd-bus/bus-util.c')
-rw-r--r-- | src/libsystemd/sd-bus/bus-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-util.c b/src/libsystemd/sd-bus/bus-util.c index 7c6da60cca..9018bcee5c 100644 --- a/src/libsystemd/sd-bus/bus-util.c +++ b/src/libsystemd/sd-bus/bus-util.c @@ -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) |