From 961703de9684997c273ac34ab8d4e0fda1128759 Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Sat, 11 Dec 2010 23:29:22 -0800 Subject: [PATCH] datapath: Use __packed macro. The __packed macro is preferred instead of an explicit GCC attribute, so use it instead to deal with structure packing. Signed-off-by: Jesse Gross Acked-by: Ben Pfaff --- datapath/flow.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datapath/flow.h b/datapath/flow.h index 808e731f..61ffcd75 100644 --- a/datapath/flow.h +++ b/datapath/flow.h @@ -59,7 +59,7 @@ struct arp_eth_header unsigned char ar_sip[4]; /* sender IP address */ unsigned char ar_tha[ETH_ALEN]; /* target hardware address */ unsigned char ar_tip[4]; /* target IP address */ -} __attribute__((packed)); +} __packed; int flow_init(void); void flow_exit(void); -- 2.30.2