summaryrefslogtreecommitdiff
path: root/source3/lib/util_tsock.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-06-21 08:38:51 +0200
committerVolker Lendecke <vl@samba.org>2010-06-21 15:03:58 +0200
commitc0ed0bca59dc1dc0c614641c2e54933fbc4f64da (patch)
tree22fe2733a0fb0353fd4d4f82d4561669141f5850 /source3/lib/util_tsock.c
parentb784c20df8fcafc3a5c66f847b1af58b77eeb42b (diff)
downloadsamba-c0ed0bca59dc1dc0c614641c2e54933fbc4f64da.tar.gz
samba-c0ed0bca59dc1dc0c614641c2e54933fbc4f64da.tar.bz2
samba-c0ed0bca59dc1dc0c614641c2e54933fbc4f64da.zip
s3: Fix a type-punned warning
Diffstat (limited to 'source3/lib/util_tsock.c')
-rw-r--r--source3/lib/util_tsock.c4
1 files 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,