eapolutil: Use flexible-array member

Instead of zero-length array, use the more preferred flexible-array
member.  See https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html
This commit is contained in:
Denis Kenzior 2021-05-28 10:57:11 -05:00
parent 920ac37a40
commit 9518d68d9a
1 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ struct eapol_header {
struct eapol_frame {
struct eapol_header header;
uint8_t data[0];
uint8_t data[];
} __attribute__ ((packed));
/* gets pointer to MIC */
@ -111,7 +111,7 @@ struct eapol_key {
uint8_t eapol_key_iv[16];
uint8_t key_rsc[8];
uint8_t reserved[8];
uint8_t key_data[0];
uint8_t key_data[];
} __attribute__ ((packed));
const struct eapol_key *eapol_key_validate(const uint8_t *frame, size_t len,