summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-03-26 12:00:40 +0200
committerVolker Lendecke <vl@samba.org>2018-03-28 13:03:25 +0200
commit360804ed4f7d3ab7375ba68885fed4584ef0a438 (patch)
tree09d0bbeaa9303991503ab9e7c3cf52f6eb5f0c9d /librpc
parent4e0cf2fa766eed922e86428b2ecdf3da0a27bc9b (diff)
downloadsamba-360804ed4f7d3ab7375ba68885fed4584ef0a438.tar.gz
ndr_string: Fix a signed/unsigned glitch
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/ndr/ndr_string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/librpc/ndr/ndr_string.c b/librpc/ndr/ndr_string.c
index 067f91781ee..42ba3cfccc1 100644
--- a/librpc/ndr/ndr_string.c
+++ b/librpc/ndr/ndr_string.c
@@ -636,7 +636,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_charset_to_null(struct ndr_pull *ndr, int nd
_PUBLIC_ enum ndr_err_code ndr_push_charset(struct ndr_push *ndr, int ndr_flags, const char *var, uint32_t length, uint8_t byte_mul, charset_t chset)
{
- ssize_t required;
+ size_t required;
if (NDR_BE(ndr) && chset == CH_UTF16) {
chset = CH_UTF16BE;