diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ChangeLog | 6 | ||||
-rw-r--r-- | lib/buffer.c | 2 | ||||
-rw-r--r-- | lib/stream.h | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index e1f4118f..5788380b 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +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 + 2005-11-24 Paul Jakma <paul.jakma@sun.com> * privs.c: (zcaps2sys/solaris) remove unused variable. 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 */ diff --git a/lib/stream.h b/lib/stream.h index 4753f829..564fa3ca 100644 --- a/lib/stream.h +++ b/lib/stream.h @@ -103,7 +103,7 @@ struct stream size_t getp; /* next get position */ size_t endp; /* last valid data position */ size_t size; /* size of data segment */ - unsigned char data[0]; /* data pointer */ + unsigned char data[]; /* data pointer */ }; /* First in first out queue structure. */ |