summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-message.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-16 20:00:25 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-16 20:34:46 +0100
commit306f07be2fe2b4ccf6c9575ef8c980661df2aba8 (patch)
tree3f9484cd17366d8f113e3ee86e700355e4e84553 /src/libsystemd-bus/bus-message.h
parent531dca789ea6b4c269ca2646515b42962f83d64a (diff)
bus: let's use GREEDY_REALLOC() when allocating space for containers
Diffstat (limited to 'src/libsystemd-bus/bus-message.h')
-rw-r--r--src/libsystemd-bus/bus-message.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-message.h b/src/libsystemd-bus/bus-message.h
index b9cd4c8f30..9ef92cf289 100644
--- a/src/libsystemd-bus/bus-message.h
+++ b/src/libsystemd-bus/bus-message.h
@@ -46,7 +46,7 @@ struct bus_container {
uint32_t *array_size;
/* gvariant: list of offsets to end of children if this is struct/dict entry/array */
- size_t *offsets, n_offsets, n_offsets_allocated, offset_index;
+ size_t *offsets, n_offsets, offsets_allocated, offset_index;
size_t item_size;
};
@@ -115,6 +115,7 @@ struct sd_bus_message {
struct bus_container root_container, *containers;
unsigned n_containers;
+ size_t containers_allocated;
struct iovec *iovec;
struct iovec iovec_fixed[2];