From: Jesse Gross Date: Sun, 12 Dec 2010 07:29:22 +0000 (-0800) Subject: datapath: Use __packed macro. X-Git-Tag: v1.1.0~637 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=961703de9684997c273ac34ab8d4e0fda1128759;p=sliver-openvswitch.git 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 --- diff --git a/datapath/flow.h b/datapath/flow.h index 808e731fc..61ffcd753 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);