summaryrefslogtreecommitdiff
path: root/lib/buffer.c
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 /lib/buffer.c
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 'lib/buffer.c')
-rw-r--r--lib/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/buffer.c b/lib/buffer.c
index 81cd0f2a..f19a9e0c 100644
--- a/lib/buffer.c
+++ b/lib/buffer.c
@@ -53,7 +53,7 @@ struct buffer_data
size_t sp;
/* Actual data stream (variable length). */
- unsigned char data[0]; /* real dimension is buffer->size */
+ unsigned char data[]; /* real dimension is buffer->size */
};
/* It should always be true that: 0 <= sp <= cp <= size */