From c0ed0bca59dc1dc0c614641c2e54933fbc4f64da Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 21 Jun 2010 08:38:51 +0200 Subject: s3: Fix a type-punned warning --- source3/lib/util_tsock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/lib/util_tsock.c b/source3/lib/util_tsock.c index 7588857404..1cb88c67bd 100644 --- a/source3/lib/util_tsock.c +++ b/source3/lib/util_tsock.c @@ -51,7 +51,7 @@ struct tevent_req *tstream_read_packet_send(TALLOC_CTX *mem_ctx, if (tevent_req_nomem(state->buf, req)) { return tevent_req_post(req, ev); } - state->iov.iov_base = state->buf; + state->iov.iov_base = (void *)state->buf; state->iov.iov_len = initial; state->ev = ev; @@ -114,7 +114,7 @@ static void tstream_read_packet_done(struct tevent_req *subreq) } state->buf = tmp; - state->iov.iov_base = state->buf + total; + state->iov.iov_base = (void *)(state->buf + total); state->iov.iov_len = more; subreq = tstream_readv_send(state, state->ev, state->stream, -- cgit