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>
This commit is contained in:
Peter Maydell 2016-03-23 01:03:09 +01:00 committed by Samuel Thibault
parent 67e3eee454
commit 1c3c8e9547
1 changed files with 2 additions and 4 deletions

View File

@ -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