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 624e4c0a49dfed37b9bd8e7f82304dcc4ad06a37..3a8b4c3a90eb6150e3b737b201e512fce75f7f52 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 */
         */
        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 {
 };
 
 struct fio_net_int_cmd {
@@ -86,12 +86,12 @@ struct cmd_probe_pdu {
 
 struct cmd_single_line_pdu {
        uint16_t len;
 
 struct cmd_single_line_pdu {
        uint16_t len;
-       uint8_t text[0];
+       uint8_t text[];
 };
 
 struct cmd_line_pdu {
        uint16_t lines;
 };
 
 struct cmd_line_pdu {
        uint16_t lines;
-       struct cmd_single_line_pdu options[0];
+       struct cmd_single_line_pdu options[];
 };
 
 struct cmd_start_pdu {
 };
 
 struct cmd_start_pdu {
diff --git a/stat.h b/stat.h
index b9e0448153ed50979f38efec7ec23d47ee3d38f6..4ca826170a0b886376f12f7b3591866f6543092d 100644 (file)
--- a/stat.h
+++ b/stat.h
@@ -186,7 +186,7 @@ struct jobs_eta {
         * Network 'copy' of run_str[]
         */
        uint32_t nr_threads;
         * 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);
 };
 
 extern void show_thread_status(struct thread_stat *ts, struct group_run_stats *rs);