]> git.proxmox.com Git - mirror_qemu.git/commit
Avoid embedding struct mbuf in other structures
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 22 Feb 2016 21:29:21 +0000 (22:29 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 22 Mar 2016 23:57:01 +0000 (00:57 +0100)
commit67e3eee45460129cbc5a90fb9f74eb52594281cd
tree1fbd93c803f75e45b926b9883e5a3dc2df84e8f1
parentc17c07231e88549169689ffba811e53921e10025
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>
slirp/if.c
slirp/mbuf.c
slirp/misc.c
slirp/misc.h
slirp/slirp.h