From 14a3d4d7f06f667d3d5634360e1bb81f7f9a117d Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Wed, 27 Oct 2010 08:54:46 +0200 Subject: librpc/ndr/ndr.c - fix some counter types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "depth" is "uint32_t" Autobuild-User: Matthias Dieter Wallnöfer Autobuild-Date: Wed Oct 27 08:13:40 UTC 2010 on sn-devel-104 --- librpc/ndr/ndr.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'librpc/ndr') diff --git a/librpc/ndr/ndr.c b/librpc/ndr/ndr.c index 0e16a43525..63b2cc323c 100644 --- a/librpc/ndr/ndr.c +++ b/librpc/ndr/ndr.c @@ -166,7 +166,8 @@ _PUBLIC_ void ndr_print_debug_helper(struct ndr_print *ndr, const char *format, { va_list ap; char *s = NULL; - int i, ret; + uint32_t i; + int ret; va_start(ap, format); ret = vasprintf(&s, format, ap); @@ -193,7 +194,7 @@ _PUBLIC_ void ndr_print_debug_helper(struct ndr_print *ndr, const char *format, _PUBLIC_ void ndr_print_printf_helper(struct ndr_print *ndr, const char *format, ...) { va_list ap; - int i; + uint32_t i; if (!ndr->no_newline) { for (i=0;idepth;i++) { @@ -212,7 +213,7 @@ _PUBLIC_ void ndr_print_printf_helper(struct ndr_print *ndr, const char *format, _PUBLIC_ void ndr_print_string_helper(struct ndr_print *ndr, const char *format, ...) { va_list ap; - int i; + uint32_t i; if (!ndr->no_newline) { for (i=0;idepth;i++) { -- cgit