Skip to content

Commit

Permalink
bus: fix bus_print_property() to use "int" for booleans
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
David Herrmann committed Sep 18, 2014
1 parent 77c1020 commit c2fa048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsystemd/sd-bus/bus-util.c
Expand Up @@ -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)
Expand Down

0 comments on commit c2fa048

Please sign in to comment.