mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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 <samuel.thibault@ens-lyon.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
c17c07231e
commit
67e3eee454
5 changed files with 34 additions and 30 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue