diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-11-25 20:01:47 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:06:09 -0500 |
commit | 3308087bae76a99c02687bd11f4237d803f9f605 (patch) | |
tree | 8edac7cff6b97b13a47f29f244087cb9787c12bf /source4/smb_server | |
parent | 5cbc9574a6e36229875d552cccc3009d38f1b07f (diff) | |
download | samba-3308087bae76a99c02687bd11f4237d803f9f605.tar.gz samba-3308087bae76a99c02687bd11f4237d803f9f605.tar.bz2 samba-3308087bae76a99c02687bd11f4237d803f9f605.zip |
r3971: fix compiler warnings
metze
(This used to be commit 234166606dc86b9e98226cff94b3869ec173671e)
Diffstat (limited to 'source4/smb_server')
-rw-r--r-- | source4/smb_server/nttrans.c | 4 | ||||
-rw-r--r-- | source4/smb_server/trans2.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/source4/smb_server/nttrans.c b/source4/smb_server/nttrans.c index abb66a24ca..0a268ccbf4 100644 --- a/source4/smb_server/nttrans.c +++ b/source4/smb_server/nttrans.c @@ -92,7 +92,7 @@ static NTSTATUS nttrans_create(struct smbsrv_request *req, io->ntcreatex.in.ea_list = NULL; req_pull_string(req, &io->ntcreatex.in.fname, - params + 54, + (const char *)(params + 54), trans->in.params.length - 54, STR_NO_RANGE_CHECK | STR_TERMINATE); if (!io->ntcreatex.in.fname) { @@ -356,7 +356,7 @@ void reply_nttrans(struct smbsrv_request *req) uint16_t param_count, data_count; uint16_t params_left, data_left; uint16_t param_total, data_total; - char *params, *data; + uint8_t *params, *data; NTSTATUS status; /* parse request */ diff --git a/source4/smb_server/trans2.c b/source4/smb_server/trans2.c index 13fffb4487..427583954a 100644 --- a/source4/smb_server/trans2.c +++ b/source4/smb_server/trans2.c @@ -666,7 +666,7 @@ static NTSTATUS trans2_fileinfo_fill(struct smbsrv_request *req, struct smb_tran for (i=0;i<st->stream_info.out.num_streams;i++) { uint16_t data_size = trans->out.data.length; - char *data; + uint8_t *data; trans2_grow_data(req, trans, data_size + 24); data = trans->out.data.data + data_size; @@ -957,7 +957,7 @@ static void find_fill_info(struct smbsrv_request *req, struct find_state *state, union smb_search_data *file) { - char *data; + uint8_t *data; uint_t ofs = trans->out.data.length; switch (state->level) { @@ -1157,7 +1157,7 @@ static NTSTATUS trans2_findfirst(struct smbsrv_request *req, struct smb_trans2 * union smb_search_first search; NTSTATUS status; uint16_t level; - char *param; + uint8_t *param; struct find_state state; /* make sure we got all the parameters */ @@ -1218,7 +1218,7 @@ static NTSTATUS trans2_findnext(struct smbsrv_request *req, struct smb_trans2 *t union smb_search_next search; NTSTATUS status; uint16_t level; - char *param; + uint8_t *param; struct find_state state; /* make sure we got all the parameters */ @@ -1322,7 +1322,7 @@ void reply_trans_generic(struct smbsrv_request *req, uint8_t command) uint16_t param_count, data_count; uint16_t params_left, data_left; uint16_t param_total, data_total; - char *params, *data; + uint8_t *params, *data; NTSTATUS status; /* parse request */ |