diff options
author | Jan Maria Matejka <mq@ucw.cz> | 2018-09-18 14:21:11 +0200 |
---|---|---|
committer | Jan Maria Matejka <mq@ucw.cz> | 2018-09-18 14:21:11 +0200 |
commit | d4cebc6bbe2a55bd344383fcc27255a12d686195 (patch) | |
tree | d778709a80ad32d5688dc88f2d7639ac304df7df /proto/rip | |
parent | d50b0bc437f5ffd0d2c9f843217f8ed098c8d675 (diff) |
No more warnings ...
no more warnings
No more warnings over me
And while it is being compiled all the log is black and white
Release BIRD now and then let it flee
(use the melody of well-known Oh Freedom!)
Diffstat (limited to 'proto/rip')
-rw-r--r-- | proto/rip/packets.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/proto/rip/packets.c b/proto/rip/packets.c index 1b65362f..59ffd7c2 100644 --- a/proto/rip/packets.c +++ b/proto/rip/packets.c @@ -58,13 +58,17 @@ struct rip_block_auth { u16 must_be_ffff; u16 auth_type; - char password[0]; - u16 packet_len; - u8 key_id; - u8 auth_len; - u32 seq_num; - u32 unused1; - u32 unused2; + union { + char password[16]; + struct { + u16 packet_len; + u8 key_id; + u8 auth_len; + u32 seq_num; + u32 unused1; + u32 unused2; + }; + }; }; /* Authentication tail, RFC 4822 */ |