From: Jens Axboe Date: Tue, 8 Jan 2013 12:42:41 +0000 (+0100) Subject: Use variable[] instead of GCC variable[0] syntax X-Git-Tag: fio-2.0.13~3 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=372aecb9049618c1279a946b66f6b29066730951 Use variable[] instead of GCC variable[0] syntax Signed-off-by: Jens Axboe --- 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);