datapath: Use __packed macro.
authorJesse Gross <jesse@nicira.com>
Sun, 12 Dec 2010 07:29:22 +0000 (23:29 -0800)
committerJesse Gross <jesse@nicira.com>
Mon, 13 Dec 2010 21:26:08 +0000 (13:26 -0800)
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 <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/flow.h

index 808e731fc9d85cc04a3aac70f96ab3a20e81e4f0..61ffcd7533154b24123af2ed2bfdeb453fba3592 100644 (file)
@@ -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);