s3: Fix two incompatible pointer type warnings on Solaris
authorVolker Lendecke <vl@samba.org>
Sun, 9 Jan 2011 09:20:29 +0000 (10:20 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 9 Jan 2011 09:21:41 +0000 (10:21 +0100)
source3/libsmb/unexpected.c

index 12832f69539ef1b32beb7f0a400d2fdf8674a9a3..faee5598e32c01d2516628de8ae15b7abb5b0e0c 100644 (file)
@@ -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) {