From 9f24726136cc2e94359da7e0dbfd3b6955a71bc5 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 3 Mar 2014 13:53:39 -0700 Subject: [PATCH] server: fix warnings on some platforms on incompatible pointer type Signed-off-by: Jens Axboe --- server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1