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:
Jonathan Schleifer 2014-01-12 17:02:35 +01:00 committed by Jérôme Duval
parent 9c707f06a2
commit e929cd2f8f
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ struct router_advertisement_header {
uint16 router_lifetime;
uint32 reachable_time;
uint32 retransmit_timer;
uint8 options[];
uint8 options[0];
} _PACKED;