From 5c33ef2758d8e8d3978feef9056e79bce31c9d74 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 10 Sep 2010 22:22:14 +0200 Subject: s3/s4:libcli/tstream - add more "char *" casts in order to suppress Solaris warnings --- libcli/util/tstream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcli/util') diff --git a/libcli/util/tstream.c b/libcli/util/tstream.c index 9c42ca1f4e..5d0e561193 100644 --- a/libcli/util/tstream.c +++ b/libcli/util/tstream.c @@ -75,7 +75,7 @@ struct tevent_req *tstream_read_pdu_blob_send(TALLOC_CTX *mem_ctx, state->pdu_blob.data = buf; state->pdu_blob.length = initial_read_size; - state->tmp_vector.iov_base = buf; + state->tmp_vector.iov_base = (char *) buf; state->tmp_vector.iov_len = initial_read_size; subreq = tstream_readv_send(state, ev, stream, &state->tmp_vector, 1); @@ -128,7 +128,7 @@ static void tstream_read_pdu_blob_done(struct tevent_req *subreq) state->pdu_blob.data = buf; state->pdu_blob.length = pdu_size; - state->tmp_vector.iov_base = buf + state->tmp_vector.iov_len; + state->tmp_vector.iov_base = (char *) (buf + state->tmp_vector.iov_len); state->tmp_vector.iov_len = pdu_size - state->tmp_vector.iov_len; subreq = tstream_readv_send(state, -- cgit