2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-17 14:28:02 +00:00

match: Fix compile of match initializer on GCC 4.6.1.

GCC 4.6.1 complained about the match structure not being properly
initialzed when using MATCH_CATCHALL_INITIALIZER macro.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
This commit is contained in:
Justin Pettit
2015-05-06 15:25:36 -07:00
parent 5fe5010ab9
commit ccccabda01

View File

@@ -36,7 +36,7 @@ struct match {
};
/* Initializer for a "struct match" that matches every packet. */
#define MATCH_CATCHALL_INITIALIZER { .flow.dl_type = 0 }
#define MATCH_CATCHALL_INITIALIZER { .flow = { .dl_type = 0 } }
void match_init(struct match *,
const struct flow *, const struct flow_wildcards *);