summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-11-10 14:03:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:07 -0500
commit0b6370ea27f22be4af5ac5376331d306d0a69ef1 (patch)
tree21e3788a08f2be6c5fe97636cf4597c1bdb79000 /source4/smb_server
parentf0c7fca7807431a73e389e10a25e756afefd2afe (diff)
downloadsamba-0b6370ea27f22be4af5ac5376331d306d0a69ef1.tar.gz
samba-0b6370ea27f22be4af5ac5376331d306d0a69ef1.tar.bz2
samba-0b6370ea27f22be4af5ac5376331d306d0a69ef1.zip
r11643: fix compiler warnings
metze (This used to be commit 913d5356eb04d0fd02c36052b5cb6a2a5646473a)
Diffstat (limited to 'source4/smb_server')
-rw-r--r--source4/smb_server/reply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/smb_server/reply.c b/source4/smb_server/reply.c
index 03f9f58983..85edbb530f 100644
--- a/source4/smb_server/reply.c
+++ b/source4/smb_server/reply.c
@@ -2382,7 +2382,7 @@ static NTSTATUS parse_session_request(struct smbsrv_request *req)
NTSTATUS status;
blob.data = req->in.buffer + 4;
- blob.length = ascii_len_n(blob.data, req->in.size - PTR_DIFF(blob.data, req->in.buffer));
+ blob.length = ascii_len_n((const char *)blob.data, req->in.size - PTR_DIFF(blob.data, req->in.buffer));
if (blob.length == 0) return NT_STATUS_BAD_NETWORK_NAME;
req->smb_conn->negotiate.called_name = talloc(req->smb_conn, struct nbt_name);
@@ -2397,7 +2397,7 @@ static NTSTATUS parse_session_request(struct smbsrv_request *req)
NT_STATUS_NOT_OK_RETURN(status);
blob.data += blob.length;
- blob.length = ascii_len_n(blob.data, req->in.size - PTR_DIFF(blob.data, req->in.buffer));
+ blob.length = ascii_len_n((const char *)blob.data, req->in.size - PTR_DIFF(blob.data, req->in.buffer));
if (blob.length == 0) return NT_STATUS_BAD_NETWORK_NAME;
status = nbt_name_from_blob(req->smb_conn, &blob,