summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-message.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-11-07 02:03:10 +0100
committerKay Sievers <kay@vrfy.org>2013-11-07 02:05:57 +0100
commit102d8f8169427cb68cdebf5ee0f0e07788e9c2b2 (patch)
tree37c502ff4285790da20ab9c8d550aed8daceb05b /src/libsystemd-bus/bus-message.c
parentba341e7c3c18e81a6faa58883e178a60af317a40 (diff)
consistently use "int" when retrieving "bool" from bus messages
Diffstat (limited to 'src/libsystemd-bus/bus-message.c')
-rw-r--r--src/libsystemd-bus/bus-message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-message.c b/src/libsystemd-bus/bus-message.c
index 67f7d58a45..9543ae3b26 100644
--- a/src/libsystemd-bus/bus-message.c
+++ b/src/libsystemd-bus/bus-message.c
@@ -2669,7 +2669,7 @@ _public_ int sd_bus_message_read_basic(sd_bus_message *m, char type, void *p) {
case SD_BUS_TYPE_BOOLEAN:
if (p)
- *(unsigned*) p = !!*(uint32_t*) q;
+ *(int*) p = !!*(uint32_t*) q;
break;
case SD_BUS_TYPE_INT16: