From 3ee68a5b11605f57fd92d5e8307ff79635c1925c Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 26 Apr 2008 11:03:54 -0700 Subject: [PATCH] Fix openflow.h compilation with GCC 2.95. Necessary because older Linux 2.4 releases will only compile with GCC 2.95. --- include/openflow.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/openflow.h b/include/openflow.h index d93a6229..f3f533c3 100644 --- a/include/openflow.h +++ b/include/openflow.h @@ -419,7 +419,7 @@ struct ofp_table_stats { /* Current table statistics reply */ struct ofp_table_stats_reply { struct ofp_header header; - struct ofp_table_stats tables[]; /* The number of entries is inferred from + struct ofp_table_stats tables[0]; /* The number of entries is inferred from the length field in the header. */ }; @@ -440,7 +440,7 @@ struct ofp_port_stats_request { /* Current port statistics reply */ struct ofp_port_stats_reply { struct ofp_header header; - struct ofp_port_stats ports[]; /* The number of entries is inferred from + struct ofp_port_stats ports[0]; /* The number of entries is inferred from the length field in the header. */ }; -- 2.30.2