aboutgitcodebugslistschat
path: root/tap.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2023-08-01 13:36:47 +1000
committerStefano Brivio <sbrivio@redhat.com>2023-08-04 01:18:00 +0200
commitb15ce5b6ceb0ba0cbb91d460c5a745a14c2050df (patch)
tree0bdbc536b9b623579cd67288d62993afacb19ef8 /tap.c
parent8218d990138b7da8411351488ea06243134ae37b (diff)
downloadpasst-b15ce5b6ceb0ba0cbb91d460c5a745a14c2050df.tar
passt-b15ce5b6ceb0ba0cbb91d460c5a745a14c2050df.tar.gz
passt-b15ce5b6ceb0ba0cbb91d460c5a745a14c2050df.tar.bz2
passt-b15ce5b6ceb0ba0cbb91d460c5a745a14c2050df.tar.lz
passt-b15ce5b6ceb0ba0cbb91d460c5a745a14c2050df.tar.xz
passt-b15ce5b6ceb0ba0cbb91d460c5a745a14c2050df.tar.zst
passt-b15ce5b6ceb0ba0cbb91d460c5a745a14c2050df.zip
Use static assertion to verify that union epoll_ref is the right size
union epoll_ref is used to subdivide the 64-bit data field in struct epoll_event. Thus it *must* fit within that field or we're likely to get very subtle and nasty bugs. C11 introduces the notion of static assertions which we can use to verify this is the case at compile time. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tap.c')
0 files changed, 0 insertions, 0 deletions