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/libcli/raw | |
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/libcli/raw')
-rw-r--r-- | source4/libcli/raw/raweas.c | 2 | ||||
-rw-r--r-- | source4/libcli/raw/rawtrans.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/libcli/raw/raweas.c b/source4/libcli/raw/raweas.c index 17e5ce8f75..621181841f 100644 --- a/source4/libcli/raw/raweas.c +++ b/source4/libcli/raw/raweas.c @@ -129,7 +129,7 @@ uint_t ea_pull_struct(const DATA_BLOB *blob, return 0; } - ea->name.s = talloc_strndup(mem_ctx, blob->data+4, nlen); + ea->name.s = talloc_strndup(mem_ctx, (const char *)(blob->data+4), nlen); ea->name.private_length = nlen; ea->value = data_blob_talloc(mem_ctx, NULL, vlen+1); if (!ea->value.data) return 0; diff --git a/source4/libcli/raw/rawtrans.c b/source4/libcli/raw/rawtrans.c index 2554a736f5..371f50410d 100644 --- a/source4/libcli/raw/rawtrans.c +++ b/source4/libcli/raw/rawtrans.c @@ -56,8 +56,8 @@ NTSTATUS smb_raw_trans2_recv(struct smbcli_request *req, { int total_data=0; int total_param=0; - char *tdata; - char *tparam; + uint8_t *tdata; + uint8_t *tparam; parms->out.data.length = 0; parms->out.data.data = NULL; |