From: Jens Axboe Date: Mon, 3 Mar 2014 20:53:39 +0000 (-0700) Subject: server: fix warnings on some platforms on incompatible pointer type X-Git-Tag: fio-2.1.6~2^2~2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=9f24726136cc2e94359da7e0dbfd3b6955a71bc5;p=fio.git server: fix warnings on some platforms on incompatible pointer type Signed-off-by: Jens Axboe --- diff --git a/server.c b/server.c index b6961fd5..dc70616a 100644 --- a/server.c +++ b/server.c @@ -1138,7 +1138,7 @@ static int fio_send_cmd_ext_pdu(int sk, uint16_t opcode, const void *buf, struct fio_net_cmd cmd; struct iovec iov[2]; - iov[0].iov_base = &cmd; + iov[0].iov_base = (void *) &cmd; iov[0].iov_len = sizeof(cmd); iov[1].iov_base = (void *) buf; iov[1].iov_len = size;