mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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:
committed by
Samuel Thibault
parent
67e3eee454
commit
1c3c8e9547
+2
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user