summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-socket.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-04-11 23:09:29 +0200
committerLennart Poettering <lennart@poettering.net>2013-04-11 23:10:41 +0200
commit6629161f827c82889cf45cfcdce62dcb543eda23 (patch)
tree05a680fb5fd55bf0098d7f5da043b3986e636fbd /src/libsystemd-bus/bus-socket.c
parent4cda0f2116a69b0c54afe518c930022fb1a38022 (diff)
bus: basic implementation of kdbus client side
Diffstat (limited to 'src/libsystemd-bus/bus-socket.c')
-rw-r--r--src/libsystemd-bus/bus-socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-socket.c b/src/libsystemd-bus/bus-socket.c
index 5e285c9e52..bce81aeffc 100644
--- a/src/libsystemd-bus/bus-socket.c
+++ b/src/libsystemd-bus/bus-socket.c
@@ -762,7 +762,7 @@ int bus_socket_write_message(sd_bus *bus, sd_bus_message *m, size_t *idx) {
assert(idx);
assert(bus->state == BUS_RUNNING || bus->state == BUS_HELLO);
- if (*idx >= bus_message_size(m))
+ if (*idx >= BUS_MESSAGE_SIZE(m))
return 0;
bus_message_setup_iovec(m);