ipv6 datagram: Fix Clang complaining about a flexible array member.
Interestingly, [0] should be as invalid in C++ as [] in this case, yet Clang refuses [], but accepts [0]. Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
parent
9c707f06a2
commit
e929cd2f8f
|
@ -92,7 +92,7 @@ struct router_advertisement_header {
|
|||
uint16 router_lifetime;
|
||||
uint32 reachable_time;
|
||||
uint32 retransmit_timer;
|
||||
uint8 options[];
|
||||
uint8 options[0];
|
||||
} _PACKED;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue