From d21cf6bbb18e6f83739caa457c983b361be789b4 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 4 Aug 2022 13:23:28 -0700 Subject: s3: smbd: Cleanup - integer align. consumedcnt should be a size_t. Signed-off-by: Jeremy Allison Reviewed-by: Volker Lendecke --- source3/smbd/msdfs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3/smbd/msdfs.c') diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index a716f579e4b..1f24c87ccbd 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -666,7 +666,7 @@ static NTSTATUS dfs_path_lookup(TALLOC_CTX *ctx, server+share+extrapath. */ uint32_t ucf_flags, NTTIME *_twrp, - int *consumedcntp, + size_t *consumedcntp, struct referral **ppreflist, size_t *preferral_count) { @@ -806,7 +806,7 @@ static NTSTATUS dfs_path_lookup(TALLOC_CTX *ctx, if (consumedcntp) { *consumedcntp = strlen(canon_dfspath); DBG_DEBUG("Path consumed: %s " - "(%d)\n", + "(%zu)\n", canon_dfspath, *consumedcntp); } @@ -928,7 +928,7 @@ NTSTATUS dfs_redirect(TALLOC_CTX *ctx, pdp, ucf_flags, _twrp, /* twrp. */ - NULL, /* int *consumedcntp */ + NULL, /* size_t *consumedcntp */ NULL, /* struct referral **ppreflist */ NULL); /* size_t *preferral_count */ if (!NT_STATUS_IS_OK(status)) { @@ -965,7 +965,7 @@ NTSTATUS dfs_redirect(TALLOC_CTX *ctx, static NTSTATUS self_ref(TALLOC_CTX *ctx, const char *dfs_path, struct junction_map *jucn, - int *consumedcntp, + size_t *consumedcntp, bool *self_referralp) { struct referral *ref; @@ -1001,7 +1001,7 @@ NTSTATUS get_referred_path(TALLOC_CTX *ctx, const struct tsocket_address *local_address, bool allow_broken_path, struct junction_map *jucn, - int *consumedcntp, + size_t *consumedcntp, bool *self_referralp) { TALLOC_CTX *frame = talloc_stackframe(); -- cgit v1.2.1