Merge pull request #10820 from miri64/eui48/fix/type-alignment

eui48: fix type alignment
This commit is contained in:
Marian Buschsieweke 2019-01-18 17:34:45 +01:00 committed by GitHub
commit c2cda285ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,9 +32,8 @@ extern "C" {
/**
* @brief Data type to represent an EUI-48
*/
typedef union {
typedef struct {
uint8_t uint8[6]; /**< split into 6 8-bit words. */
network_uint16_t uint16[3]; /**< split into 3 16-bit words. */
} eui48_t;
/**