summaryrefslogtreecommitdiffstats
path: root/src/shared/bus-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-03-15 18:35:29 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-03-19 14:53:45 +0100
commit4f00a11c736b015f40f513b9349afb560791abdc (patch)
treeff64950c3dda5deca3016358a744520f4886dd24 /src/shared/bus-util.c
parentsystemctl: use bus_map_all_properties() in list-dependencies command (diff)
downloadsystemd-4f00a11c736b015f40f513b9349afb560791abdc.tar.xz
systemd-4f00a11c736b015f40f513b9349afb560791abdc.zip
bus-util: store boolean message to bool
Diffstat (limited to '')
-rw-r--r--src/shared/bus-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c
index 548e817105..8699ed5ce2 100644
--- a/src/shared/bus-util.c
+++ b/src/shared/bus-util.c
@@ -1060,13 +1060,13 @@ static int map_basic(sd_bus *bus, const char *member, sd_bus_message *m, sd_bus_
case SD_BUS_TYPE_BOOLEAN: {
unsigned b;
- int *p = userdata;
+ bool *p = userdata;
r = sd_bus_message_read_basic(m, type, &b);
if (r < 0)
return r;
- *p = b;
+ *p = !!b;
return 0;
}