From 372aecb9049618c1279a946b66f6b29066730951 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 8 Jan 2013 13:42:41 +0100 Subject: [PATCH] Use variable[] instead of GCC variable[0] syntax Signed-off-by: Jens Axboe --- server.h | 6 +++--- stat.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server.h b/server.h index 624e4c0a..3a8b4c3a 100644 --- 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 b9e04481..4ca82617 100644 --- 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); -- 2.25.1