summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/librpc/ndr/ndr_string.c3
-rw-r--r--source3/libsmb/clirap.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/source3/librpc/ndr/ndr_string.c b/source3/librpc/ndr/ndr_string.c
index 1c0675849c..e2c9ed5946 100644
--- a/source3/librpc/ndr/ndr_string.c
+++ b/source3/librpc/ndr/ndr_string.c
@@ -315,7 +315,8 @@ _PUBLIC_ enum ndr_err_code ndr_pull_string(struct ndr_pull *ndr, int ndr_flags,
*/
_PUBLIC_ enum ndr_err_code ndr_push_string(struct ndr_push *ndr, int ndr_flags, const char *s)
{
- ssize_t s_len, c_len, d_len;
+ ssize_t s_len, c_len;
+ size_t d_len;
int chset = CH_UTF16;
unsigned flags = ndr->flags;
unsigned byte_mul = 2;
diff --git a/source3/libsmb/clirap.c b/source3/libsmb/clirap.c
index cf4f4987cf..61e2fb7f1a 100644
--- a/source3/libsmb/clirap.c
+++ b/source3/libsmb/clirap.c
@@ -865,7 +865,7 @@ bool cli_qpathinfo_streams(struct cli_state *cli, const char *fname,
while ((data_len > ofs) && (data_len - ofs >= 24)) {
uint32_t nlen, len;
- ssize_t size;
+ size_t size;
void *vstr;
struct stream_struct *tmp;
uint8_t *tmp_buf;