summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-15 07:38:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:55 -0500
commit42c810cea660f59cae8c30b12a5419450e923a2b (patch)
tree7ee829244a6b123b14dc4629d5dc063a3679b094
parentddd1f092a551432ee008bcb2d555972c2e8da307 (diff)
downloadsamba-42c810cea660f59cae8c30b12a5419450e923a2b.tar.gz
samba-42c810cea660f59cae8c30b12a5419450e923a2b.tar.bz2
samba-42c810cea660f59cae8c30b12a5419450e923a2b.zip
r2989: fix the printing of unions with negative cases when :print is used
(This used to be commit d8152f896119418d95d7697cc2ca23f5319c32a9)
-rw-r--r--source4/librpc/ndr/ndr_basic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/librpc/ndr/ndr_basic.c b/source4/librpc/ndr/ndr_basic.c
index 61ad722cb1..edb1590489 100644
--- a/source4/librpc/ndr/ndr_basic.c
+++ b/source4/librpc/ndr/ndr_basic.c
@@ -928,9 +928,9 @@ void ndr_print_time_t(struct ndr_print *ndr, const char *name, time_t t)
}
}
-void ndr_print_union(struct ndr_print *ndr, const char *name, uint16_t level, const char *type)
+void ndr_print_union(struct ndr_print *ndr, const char *name, int level, const char *type)
{
- ndr->print(ndr, "%-25s: union %s(case %u)", name, type, level);
+ ndr->print(ndr, "%-25s: union %s(case %d)", name, type, level);
}
void ndr_print_bad_level(struct ndr_print *ndr, const char *name, uint16_t level)