summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--librpc/ndr/ndr.c7
1 files changed, 4 insertions, 3 deletions
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;i<ndr->depth;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;i<ndr->depth;i++) {