diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-05-15 01:43:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-05-15 01:43:15 +0200 |
commit | 9b29bb6853987bf6fef21531f69864fdfb39eb9a (patch) | |
tree | 85b58efc6f3b0955cad75df2f72069ab73e84341 /src/libsystemd-bus/bus-socket.c | |
parent | 13c299d3a8603db8fdfc715eaea69ce5acd7aecb (diff) |
bus: add macro for iterating through body parts of a message
Diffstat (limited to 'src/libsystemd-bus/bus-socket.c')
-rw-r--r-- | src/libsystemd-bus/bus-socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-socket.c b/src/libsystemd-bus/bus-socket.c index 4a07869157..f43b7da05c 100644 --- a/src/libsystemd-bus/bus-socket.c +++ b/src/libsystemd-bus/bus-socket.c @@ -102,7 +102,7 @@ static int bus_message_setup_iovec(sd_bus_message *m) { return r; } - for (i = 0, part = &m->body; i < m->n_body_parts; i++, part = part->next) { + MESSAGE_FOREACH_PART(part, i, m) { r = append_iovec(m, part->data, part->size); if (r < 0) return r; |