From 3274d80ffd19ccb5e5783f7577909121d8111854 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 9 Jan 2011 10:20:29 +0100 Subject: [PATCH] s3: Fix two incompatible pointer type warnings on Solaris --- source3/libsmb/unexpected.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/libsmb/unexpected.c b/source3/libsmb/unexpected.c index 12832f69539..faee5598e32 100644 --- a/source3/libsmb/unexpected.c +++ b/source3/libsmb/unexpected.c @@ -390,7 +390,7 @@ static void nb_packet_client_send(struct nb_packet_client *client, state->hdr.type = p->packet_type; state->hdr.len = build_packet(state->buf, sizeof(state->buf), p); - state->iov[0].iov_base = &state->hdr; + state->iov[0].iov_base = (char *)&state->hdr; state->iov[0].iov_len = sizeof(state->hdr); state->iov[1].iov_base = state->buf; state->iov[1].iov_len = state->hdr.len; @@ -540,7 +540,7 @@ static void nb_packet_reader_connected(struct tevent_req *subreq) return; } - state->iov[0].iov_base = &state->query; + state->iov[0].iov_base = (char *)&state->query; state->iov[0].iov_len = sizeof(state->query); if (state->mailslot_name != NULL) {