diff options
author | Günther Deschner <gd@samba.org> | 2010-04-19 11:53:11 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-04-19 11:54:00 +0200 |
commit | 0b2e5debb004ed586e0ec7d926311c32a8b8f9e6 (patch) | |
tree | 39798cd544ce8ff07ccf4e7371d437c5c8e87cf6 /source3 | |
parent | 7b84d36f19a29e33735bde08151e540d4c2b86b1 (diff) | |
download | samba-0b2e5debb004ed586e0ec7d926311c32a8b8f9e6.tar.gz samba-0b2e5debb004ed586e0ec7d926311c32a8b8f9e6.tar.bz2 samba-0b2e5debb004ed586e0ec7d926311c32a8b8f9e6.zip |
s3-smb2: fix some c++ warnings.
Guenther
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/smb2_server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 0b3222e6ab..55111da4c4 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -558,7 +558,7 @@ static NTSTATUS smb2_send_async_interim_response(const struct smbd_smb2_request /* Step back to the previous reply. */ i = nreq->current_idx - 3; - outhdr = nreq->out.vector[i].iov_base; + outhdr = (uint8_t *)nreq->out.vector[i].iov_base; /* And end the chain. */ SIVAL(outhdr, SMB2_HDR_NEXT_COMMAND, 0); @@ -705,8 +705,8 @@ NTSTATUS smbd_smb2_request_pending_queue(struct smbd_smb2_request *req, smb2_setup_nbt_length(state->vector, 3); - hdr = state->vector[1].iov_base; - body = state->vector[2].iov_base; + hdr = (uint8_t *)state->vector[1].iov_base; + body = (uint8_t *)state->vector[2].iov_base; SIVAL(hdr, SMB2_HDR_PROTOCOL_ID, SMB2_MAGIC); SSVAL(hdr, SMB2_HDR_LENGTH, SMB2_HDR_BODY); |