librpc/ndr/ndr.c - fix some counter types
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Wed, 27 Oct 2010 06:54:46 +0000 (08:54 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Wed, 27 Oct 2010 08:13:40 +0000 (08:13 +0000)
The "depth" is "uint32_t"

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Oct 27 08:13:40 UTC 2010 on sn-devel-104

librpc/ndr/ndr.c

index 0e16a43525dd00633d74ff8172f8fb4649f4c9eb..63b2cc323c6c2df2e89d3d7ba1f521588bf1bcb8 100644 (file)
@@ -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++) {