diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-06-25 23:03:46 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-06-25 23:03:46 +0200 |
commit | b54f78558b4efc72f22e525369761f130ad34f4e (patch) | |
tree | f6e0d4a891d64003b94b2c0daac65815f1ff8b06 | |
parent | 9ac7f3588dda7d175e04878e7b871a88306d13bf (diff) | |
download | fastd-b54f78558b4efc72f22e525369761f130ad34f4e.tar fastd-b54f78558b4efc72f22e525369761f130ad34f4e.zip |
Use __attribute__((packed)) instead of __attribute__((__packed__)) consistently
-rw-r--r-- | src/fastd.h | 2 | ||||
-rw-r--r-- | src/handshake.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/fastd.h b/src/fastd.h index cc88282..3531219 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -58,7 +58,7 @@ /** An ethernet address */ -struct __attribute__((__packed__)) fastd_eth_addr { +struct __attribute__((packed)) fastd_eth_addr { uint8_t data[6]; /**< The bytes of the address */ }; diff --git a/src/handshake.h b/src/handshake.h index 997f955..ff4e55a 100644 --- a/src/handshake.h +++ b/src/handshake.h @@ -70,7 +70,7 @@ typedef enum fastd_reply_code { /** The handshake packet structure (not including the initial packet type byte) */ -typedef struct __attribute__((__packed__)) fastd_handshake_packet { +typedef struct __attribute__((packed)) fastd_handshake_packet { uint8_t rsv; /**< Reserved (must be 0) */ uint16_t tlv_len; /**< Length of the TLV records (before fastd v11 this was always 0, which is interpreted as "the whole packet") */ uint8_t tlv_data[]; /**< TLV record data */ |