From 8218d990138b7da8411351488ea06243134ae37b Mon Sep 17 00:00:00 2001 From: David Gibson Date: Tue, 1 Aug 2023 13:36:46 +1000 Subject: Use C11 anonymous members to make poll refs less verbose to use union epoll_ref has a deeply nested set of structs and unions to let us subdivide it into the various different fields we want. This means that referencing elements can involve an awkward long string of intermediate fields. Using C11 anonymous structs and unions lets us do this less clumsily. Signed-off-by: David Gibson Signed-off-by: Stefano Brivio --- tcp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tcp.h') diff --git a/tcp.h b/tcp.h index a9e3425..5499127 100644 --- a/tcp.h +++ b/tcp.h @@ -41,7 +41,7 @@ union tcp_epoll_ref { outbound:1, timer:1, index:20; - } tcp; + }; uint32_t u32; }; -- cgit v1.2.3