summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-internal.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-16 20:32:37 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-16 20:34:46 +0100
commit821e0756c62d705252ab13d24af941578c0b9642 (patch)
tree6d7c34ee9a574e0561cfb641cb479e0c04f891df /src/libsystemd-bus/bus-internal.h
parent306f07be2fe2b4ccf6c9575ef8c980661df2aba8 (diff)
bus: use GREEDY_REALLOC() when allocating message queues
Diffstat (limited to 'src/libsystemd-bus/bus-internal.h')
-rw-r--r--src/libsystemd-bus/bus-internal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-internal.h b/src/libsystemd-bus/bus-internal.h
index a599e5ab81..7af8c1e22d 100644
--- a/src/libsystemd-bus/bus-internal.h
+++ b/src/libsystemd-bus/bus-internal.h
@@ -168,11 +168,13 @@ struct sd_bus {
size_t rbuffer_size;
sd_bus_message **rqueue;
- unsigned rqueue_size, rqueue_allocated;
+ unsigned rqueue_size;
+ size_t rqueue_allocated;
sd_bus_message **wqueue;
unsigned wqueue_size;
size_t windex;
+ size_t wqueue_allocated;
uint64_t serial;