mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 22:50:29 +00:00
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:
Notes:
Lennart Poettering
2014-10-24 18:28:45 +02:00
Backport: bugfix
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user