Use variable[] instead of GCC variable[0] syntax
authorJens Axboe <axboe@kernel.dk>
Tue, 8 Jan 2013 12:42:41 +0000 (13:42 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 8 Jan 2013 12:42:41 +0000 (13:42 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
server.h
stat.h

index 624e4c0..3a8b4c3 100644 (file)
--- a/server.h
+++ b/server.h
@@ -25,7 +25,7 @@ struct fio_net_cmd {
         */
        uint16_t cmd_crc16;     /* cmd checksum */
        uint16_t pdu_crc16;     /* payload checksum */
-       uint8_t payload[0];     /* payload */
+       uint8_t payload[];      /* payload */
 };
 
 struct fio_net_int_cmd {
@@ -86,12 +86,12 @@ struct cmd_probe_pdu {
 
 struct cmd_single_line_pdu {
        uint16_t len;
-       uint8_t text[0];
+       uint8_t text[];
 };
 
 struct cmd_line_pdu {
        uint16_t lines;
-       struct cmd_single_line_pdu options[0];
+       struct cmd_single_line_pdu options[];
 };
 
 struct cmd_start_pdu {
diff --git a/stat.h b/stat.h
index b9e0448..4ca8261 100644 (file)
--- a/stat.h
+++ b/stat.h
@@ -186,7 +186,7 @@ struct jobs_eta {
         * Network 'copy' of run_str[]
         */
        uint32_t nr_threads;
-       uint8_t run_str[0];
+       uint8_t run_str[];
 };
 
 extern void show_thread_status(struct thread_stat *ts, struct group_run_stats *rs);