projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net: fix compile warning on Windows (and others)
[fio.git]
/
server.h
diff --git
a/server.h
b/server.h
index 9bf8907f1b7d754fb7f35386be70a95ea787015c..15b802b40558827552bef5897862469f4454aeb3 100644
(file)
--- 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 */
*/
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 {
- struct fio_net_cmd cmd;
struct flist_head list;
struct timeval tv;
uint64_t saved_tag;
struct flist_head list;
struct timeval tv;
uint64_t saved_tag;
+ struct fio_net_cmd cmd;
};
enum {
};
enum {
- FIO_SERVER_VER =
8
,
+ FIO_SERVER_VER =
10
,
FIO_SERVER_MAX_PDU = 1024,
FIO_SERVER_MAX_PDU = 1024,
@@
-86,16
+86,17
@@
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 {
uint32_t jobs;
};
struct cmd_start_pdu {
uint32_t jobs;
+ uint32_t stat_outputs;
};
struct cmd_end_pdu {
};
struct cmd_end_pdu {