From: Ben Pfaff Date: Sat, 26 Apr 2008 18:03:54 +0000 (-0700) Subject: Fix openflow.h compilation with GCC 2.95. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ee68a5b11605f57fd92d5e8307ff79635c1925c;p=openvswitch Fix openflow.h compilation with GCC 2.95. Necessary because older Linux 2.4 releases will only compile with GCC 2.95. --- 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. */ };