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

Signed-off-by: Justin Pettit <[email protected]>
---
 lib/match.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/match.h b/lib/match.h
index 638c49d..10aa0af 100644
--- a/lib/match.h
+++ b/lib/match.h
@@ -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 *);
-- 
1.7.5.4

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to