Skip to content
Snippets Groups Projects
Commit 1c3c8e95 authored by Peter Maydell's avatar Peter Maydell Committed by Samuel Thibault
Browse files

Use C99 flexible array instead of 1-byte trailing array


Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Signed-off-by: default avatarSamuel Thibault <samuel.thibault@ens-lyon.org>
parent 67e3eee4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment