From f169c5644754457e1ad7a2826f7c0895a863bbf2 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 29 Feb 2024 12:46:48 +0900 Subject: [PATCH] sd-ndisc: use _packed_ attribute --- src/libsystemd-network/ndisc-protocol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd-network/ndisc-protocol.h b/src/libsystemd-network/ndisc-protocol.h index 94842524ee7..dcb1b191c7b 100644 --- a/src/libsystemd-network/ndisc-protocol.h +++ b/src/libsystemd-network/ndisc-protocol.h @@ -26,7 +26,7 @@ struct nd_opt_prefix64_info { uint8_t length; uint16_t lifetime_and_plc; uint8_t prefix[12]; -} __attribute__((__packed__)); +} _packed_; int pref64_plc_to_prefix_length(uint16_t plc, uint8_t *ret); int pref64_prefix_length_to_plc(uint8_t prefixlen, uint8_t *ret); -- 2.47.3