From 67e3eee45460129cbc5a90fb9f74eb52594281cd Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 22 Feb 2016 22:29:21 +0100 Subject: Avoid embedding struct mbuf in other structures struct mbuf uses a C99 open char array to allow inlining data. Inlining this in another structure is however a GNU extension. The inlines used so far in struct Slirp were actually only needed as head of struct mbuf lists. This replaces these inline with mere struct quehead, and use casts as appropriate. Signed-off-by: Samuel Thibault Reviewed-by: Peter Maydell --- slirp/misc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'slirp/misc.h') diff --git a/slirp/misc.h b/slirp/misc.h index 41a32583da..0d0c059e6b 100644 --- a/slirp/misc.h +++ b/slirp/misc.h @@ -45,6 +45,11 @@ struct emu_t { struct emu_t *next; }; +struct slirp_quehead { + struct slirp_quehead *qh_link; + struct slirp_quehead *qh_rlink; +}; + void slirp_insque(void *, void *); void slirp_remque(void *); int add_exec(struct ex_list **, int, char *, struct in_addr, int); -- cgit v1.2.1