diff options
author | Volker Lendecke <vl@samba.org> | 2011-01-09 10:20:29 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-01-09 10:21:41 +0100 |
commit | 3274d80ffd19ccb5e5783f7577909121d8111854 (patch) | |
tree | 346220cb6a86c47c7be9c741920e58825862d1cc | |
parent | bdff4591ca80b0589954e812d8fe498038c87837 (diff) | |
download | samba-3274d80ffd19ccb5e5783f7577909121d8111854.tar.gz samba-3274d80ffd19ccb5e5783f7577909121d8111854.tar.bz2 samba-3274d80ffd19ccb5e5783f7577909121d8111854.zip |
s3: Fix two incompatible pointer type warnings on Solaris
-rw-r--r-- | source3/libsmb/unexpected.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/unexpected.c b/source3/libsmb/unexpected.c index 12832f6953..faee5598e3 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) { |