From: Joseph Sutton Date: Thu, 6 Jul 2023 02:18:33 +0000 (+1200) Subject: librpc/ndr: Remove unneeded casts X-Git-Tag: tevent-0.16.0~1235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=448ed84c361bc1f10c9d19bfed98c8fc2510cefc;p=thirdparty%2Fsamba.git librpc/ndr: Remove unneeded casts Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/librpc/ndr/ndr_compression.c b/librpc/ndr/ndr_compression.c index e79c430362e..047971a9bbf 100644 --- a/librpc/ndr/ndr_compression.c +++ b/librpc/ndr/ndr_compression.c @@ -742,8 +742,8 @@ static enum ndr_err_code ndr_pull_compression_xpress_huff_raw_chunk(struct ndr_p plain_chunk.length); if (ret < 0) { return ndr_pull_error(ndrpull, NDR_ERR_COMPRESSION, - "XPRESS HUFF lzxpress_huffman_decompress() returned %d\n", - (int)ret); + "XPRESS HUFF lzxpress_huffman_decompress() returned %zd\n", + ret); } if (plain_chunk.length != ret) { @@ -794,8 +794,8 @@ static enum ndr_err_code ndr_push_compression_xpress_huff_raw_chunk(struct ndr_p comp_chunk.length); if (ret < 0) { return ndr_pull_error(ndrpull, NDR_ERR_COMPRESSION, - "XPRESS HUFF lzxpress_huffman_compress() returned %d\n", - (int)ret); + "XPRESS HUFF lzxpress_huffman_compress() returned %zd\n", + ret); } if (ret > comp_chunk.length) {