summaryrefslogtreecommitdiff
path: root/ospfd
diff options
context:
space:
mode:
authorpaul <paul>2005-11-26 09:21:43 +0000
committerpaul <paul>2005-11-26 09:21:43 +0000
commit00c290e02edd6c906b669de9f31a45d14ed8bec0 (patch)
tree5d81084291d38b18144e6f53847026d24587b400 /ospfd
parent89368d9f8b70fef5c196db9055bd6a7e7aaa4f36 (diff)
[c99] change gcc zero-length array to C99 flexible array declaration
2005-11-26 Paul Jakma <paul.jakma@sun.com> * buffer.c: (struct buffer_data) change gcc zero array declaration to C99 incomplete array. * stream.h: (struct stream) same * ospf_api.c: (struct opaque_lsa) same
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ChangeLog5
-rw-r--r--ospfd/ospf_api.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ospfd/ChangeLog b/ospfd/ChangeLog
index d202e29c..064ed839 100644
--- a/ospfd/ChangeLog
+++ b/ospfd/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-26 Paul Jakma <paul.jakma@sun.com>
+
+ * ospf_api.c: (struct opaque_lsa) change from gcc zero-length
+ array to C99 incomplete type array.
+
2005-11-20 Paul Jakma <paul.jakma@sun.com>
* ospfd.h: remove the OSPF_ROUTER_ID_UPDATE_DELAY define
diff --git a/ospfd/ospf_api.c b/ospfd/ospf_api.c
index d9960d4a..9c9997ba 100644
--- a/ospfd/ospf_api.c
+++ b/ospfd/ospf_api.c
@@ -68,7 +68,7 @@ api_opaque_lsa_print (struct lsa_header *data)
struct opaque_lsa
{
struct lsa_header header;
- u_char mydata[0];
+ u_char mydata[];
};
struct opaque_lsa *olsa;