server: move fio_net_cmd to the end of fio_net_int_cmd
authorJens Axboe <axboe@kernel.dk>
Tue, 8 Jan 2013 12:43:14 +0000 (13:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 8 Jan 2013 12:43:14 +0000 (13:43 +0100)
fio_net_cmd is variably sized. We don't use any transfer space
for the internal command, but the compiler might complain about
this (since it has no way to know this fact). Move fio_net_cmd
to the end of the internal command to both avoid a warning on
clang and to make this more idiot proof.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
server.h

index 3a8b4c3a90eb6150e3b737b201e512fce75f7f52..3f1bde4ec38dd9806056874110e80a286b2b190e 100644 (file)
--- a/server.h
+++ b/server.h
@@ -29,10 +29,10 @@ struct fio_net_cmd {
 };
 
 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 {