X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=server.h;h=15b802b40558827552bef5897862469f4454aeb3;hb=26e594a55a54d47ce0a0784c27c6f851c83d101a;hp=9bf8907f1b7d754fb7f35386be70a95ea787015c;hpb=bd02360115abe2553626a8db663ed580ab93e978;p=fio.git diff --git a/server.h b/server.h index 9bf8907f..15b802b4 100644 --- a/server.h +++ b/server.h @@ -25,18 +25,18 @@ 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 { - struct fio_net_cmd cmd; struct flist_head list; struct timeval tv; uint64_t saved_tag; + struct fio_net_cmd cmd; }; enum { - FIO_SERVER_VER = 8, + FIO_SERVER_VER = 10, FIO_SERVER_MAX_PDU = 1024, @@ -86,16 +86,17 @@ 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 { uint32_t jobs; + uint32_t stat_outputs; }; struct cmd_end_pdu {