1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix compiler errors about non-trivial designated initializers with GCC 7

This commit is contained in:
Steffen Vogel 2019-01-21 17:11:05 +01:00 committed by Steffen Vogel
parent c0adca20b4
commit 4cdc4f0564

View file

@ -62,11 +62,11 @@ typedef int (*cmp_cb_t)(const void *, const void *);
/* The list data structure. */
struct vlist {
enum state state; /**< The state of this list. */
void **array; /**< Array of pointers to list elements */
size_t capacity; /**< Size of list::array in elements */
size_t length; /**< Number of elements of list::array which are in use */
pthread_mutex_t lock; /**< A mutex to allow thread-safe accesses */
enum state state; /**< The state of this list. */
};
/** Initialize a list.