1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

librpc/ndr: Format NDR pull sizes as ‘size_t’

The arguments to these macros are occasionally of type size_t.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-07-20 11:18:14 +12:00 committed by Andrew Bartlett
parent ee6ef91f9c
commit 64834e2668

View File

@ -362,7 +362,7 @@ enum ndr_compression_alg {
uint32_t _missing = n - _available; \
ndr->relative_highest_offset = _missing; \
} \
return ndr_pull_error(ndr, NDR_ERR_BUFSIZE, "Pull bytes %u (%s)", (unsigned)n, __location__); \
return ndr_pull_error(ndr, NDR_ERR_BUFSIZE, "Pull bytes %zu (%s)", (size_t)n, __location__); \
} \
} while(0)
@ -380,7 +380,7 @@ enum ndr_compression_alg {
return ndr_pull_error( \
ndr, \
NDR_ERR_BUFSIZE, \
"Pull align (overflow) %u", (unsigned)n); \
"Pull align (overflow) %zu", (size_t)n); \
} \
ndr->offset = (ndr->offset + (n-1)) & ~(n-1); \
} \
@ -389,7 +389,7 @@ enum ndr_compression_alg {
uint32_t _missing = ndr->offset - ndr->data_size; \
ndr->relative_highest_offset = _missing; \
} \
return ndr_pull_error(ndr, NDR_ERR_BUFSIZE, "Pull align %u", (unsigned)n); \
return ndr_pull_error(ndr, NDR_ERR_BUFSIZE, "Pull align %zu", (size_t)n); \
} \
} while(0)