From b54f78558b4efc72f22e525369761f130ad34f4e Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 25 Jun 2015 23:03:46 +0200 Subject: Use __attribute__((packed)) instead of __attribute__((__packed__)) consistently --- src/fastd.h | 2 +- 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 */ -- cgit v1.2.3