projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67e3eee
)
Use C99 flexible array instead of 1-byte trailing array
author
Peter Maydell
<peter.maydell@linaro.org>
Wed, 23 Mar 2016 00:03:09 +0000
(
01:03
+0100)
committer
Samuel Thibault
<samuel.thibault@ens-lyon.org>
Mon, 28 Mar 2016 23:15:02 +0000
(
01:15
+0200)
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
slirp/mbuf.h
patch
|
blob
|
history
diff --git
a/slirp/mbuf.h
b/slirp/mbuf.h
index 38fedf46de9c1354467e35b0a28a6f92d751798d..36fb8140974552f342d9474f67d9274535b77027 100644
(file)
--- 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