diff options
author | Andreas Schneider <asn@samba.org> | 2017-12-07 17:01:39 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-03-20 23:16:15 +0100 |
commit | c63ed7b656d4b3ea5518ee40679df96b84db0332 (patch) | |
tree | 6a6ec236860cebbb064416e40a58dee82f84c734 /libcli | |
parent | 939b4723a7d159466bfe2e66ddcb38012e412385 (diff) | |
download | samba-c63ed7b656d4b3ea5518ee40679df96b84db0332.tar.gz |
libcli:smb: Fix size types
This fixes compilation with -Wstrict-overflow=2
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/smb/smbXcli_base.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c index e9fdc1dc32a..fbf24416093 100644 --- a/libcli/smb/smbXcli_base.c +++ b/libcli/smb/smbXcli_base.c @@ -1914,7 +1914,7 @@ static NTSTATUS smb1cli_inbuf_parse_chain(uint8_t *buf, TALLOC_CTX *mem_ctx, struct iovec **piov, int *pnum_iov) { struct iovec *iov; - int num_iov; + size_t num_iov; size_t buflen; size_t taken; size_t remaining; @@ -3470,7 +3470,8 @@ static NTSTATUS smb2cli_inbuf_parse_compound(struct smbXcli_conn *conn, uint8_t *buf, size_t buflen, TALLOC_CTX *mem_ctx, - struct iovec **piov, int *pnum_iov) + struct iovec **piov, + size_t *pnum_iov) { struct iovec *iov; int num_iov = 0; @@ -3656,7 +3657,7 @@ static NTSTATUS smb2cli_conn_dispatch_incoming(struct smbXcli_conn *conn, struct tevent_req *req; struct smbXcli_req_state *state = NULL; struct iovec *iov = NULL; - int i, num_iov = 0; + size_t i, num_iov = 0; NTSTATUS status; bool defer = true; struct smbXcli_session *last_session = NULL; |