1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

r2989: fix the printing of unions with negative cases when :print is used

(This used to be commit d8152f896119418d95d7697cc2ca23f5319c32a9)
This commit is contained in:
Andrew Tridgell 2004-10-15 07:38:46 +00:00 committed by Gerald (Jerry) Carter
parent ddd1f092a5
commit 42c810cea6

View File

@ -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)