X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=server.c;h=2d17df638e988411cf2e3f2a5d96535f403617f3;hp=8b36e3837f9dc0a17e5a29b567a48e46c8bbb951;hb=0f836f393f6b2535feb4175a8a1f6d2af3da95ad;hpb=86fb8d809e36b5312171cfde8ce085a07202b9c1;ds=sidebyside diff --git a/server.c b/server.c index 8b36e383..2d17df63 100644 --- a/server.c +++ b/server.c @@ -252,9 +252,10 @@ static int fio_send_data(int sk, const void *p, unsigned int len) return fio_sendv_data(sk, &iov, 1); } -static int fio_recv_data(int sk, void *p, unsigned int len, bool wait) +static int fio_recv_data(int sk, void *buf, unsigned int len, bool wait) { int flags; + char *p = buf; if (wait) flags = MSG_WAITALL; @@ -377,7 +378,7 @@ struct fio_net_cmd *fio_net_recv_cmd(int sk, bool wait) break; /* There's payload, get it */ - pdu = (void *) cmdret->payload + pdu_offset; + pdu = (char *) cmdret->payload + pdu_offset; ret = fio_recv_data(sk, pdu, cmd.pdu_len, wait); if (ret) break;