diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-03-23 01:03:09 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-03-29 01:15:02 +0200 |
commit | 1c3c8e954704cc70a8da2af3d14159b0d2f5c02b (patch) | |
tree | f12a37e839b6bffcb48be38d6a0af026c4268baf | |
parent | 67e3eee45460129cbc5a90fb9f74eb52594281cd (diff) |
Use C99 flexible array instead of 1-byte trailing array
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
-rw-r--r-- | slirp/mbuf.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/slirp/mbuf.h b/slirp/mbuf.h index 38fedf46de..36fb814097 100644 --- a/slirp/mbuf.h +++ b/slirp/mbuf.h @@ -81,11 +81,9 @@ struct mbuf { Slirp *slirp; bool resolution_requested; uint64_t expiration_date; + char *m_ext; /* start of dynamic buffer area, must be last element */ - union { - char m_dat[1]; /* ANSI don't like 0 sized arrays */ - char *m_ext; - }; + char m_dat[]; }; #define ifq_prev m_prev |