As discussed on our recent calls, the C11 standard introduces
anonymous structure and union members and static assertions, amongst
other things. Both of these could be useful in a few places in
passt/pasta to make the code more readable and safer.
However, at the moment, the compiler flags we use only allow C99 code.
This series allows C11 code, and makes some fairly obvious cleanups by
using it.
It would be nice to get an opinion on this reasonably quickly, because
I have other patches in the works that will look different depending
on whether or not they can use C11 features.
David Gibson (3):
Allow C11 code, not just C99 code
Use C11 anonymous members to make poll refs less verbose to use
Use static assertion to verify that union epoll_ref is the right size
Makefile | 4 ++--
icmp.c | 22 +++++++++++-----------
icmp.h | 2 +-
passt.c | 8 ++++----
passt.h | 8 ++++++--
tcp.c | 46 +++++++++++++++++++++++-----------------------
tcp.h | 2 +-
tcp_splice.c | 11 +++++------
udp.c | 50 +++++++++++++++++++++++---------------------------
udp.h | 2 +-
util.c | 4 ++--
11 files changed, 79 insertions(+), 80 deletions(-)
--
2.41.0