This fixes compilation with -Wstrict-overflow=2
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
struct iovec **piov, int *pnum_iov)
{
struct iovec *iov;
struct iovec **piov, int *pnum_iov)
{
struct iovec *iov;
size_t buflen;
size_t taken;
size_t remaining;
size_t buflen;
size_t taken;
size_t remaining;
uint8_t *buf,
size_t buflen,
TALLOC_CTX *mem_ctx,
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;
{
struct iovec *iov;
int num_iov = 0;
struct tevent_req *req;
struct smbXcli_req_state *state = NULL;
struct iovec *iov = NULL;
struct tevent_req *req;
struct smbXcli_req_state *state = NULL;
struct iovec *iov = NULL;
NTSTATUS status;
bool defer = true;
struct smbXcli_session *last_session = NULL;
NTSTATUS status;
bool defer = true;
struct smbXcli_session *last_session = NULL;