pidl: Add and use ndr_print_steal_switch_value(), removing ndr_print_get_switch_value()
[samba.git] / librpc / ndr / ndr_schannel.c
index 9bbc628a29436cc58a43f94e5d244dfac339353c..6b08a79cab2cfafe5c38c72b2466cd03b21eb5ae 100644 (file)
@@ -27,7 +27,7 @@
 _PUBLIC_ void ndr_print_NL_AUTH_MESSAGE_BUFFER(struct ndr_print *ndr, const char *name, const union NL_AUTH_MESSAGE_BUFFER *r)
 {
        int level;
-       level = ndr_print_get_switch_value(ndr, r);
+       level = ndr_print_steal_switch_value(ndr, r);
        switch (level) {
                case NL_FLAG_OEM_NETBIOS_DOMAIN_NAME:
                        ndr_print_string(ndr, name, r->a);
@@ -58,7 +58,7 @@ _PUBLIC_ void ndr_print_NL_AUTH_MESSAGE_BUFFER(struct ndr_print *ndr, const char
 _PUBLIC_ void ndr_print_NL_AUTH_MESSAGE_BUFFER_REPLY(struct ndr_print *ndr, const char *name, const union NL_AUTH_MESSAGE_BUFFER_REPLY *r)
 {
        int level;
-       level = ndr_print_get_switch_value(ndr, r);
+       level = ndr_print_steal_switch_value(ndr, r);
        switch (level) {
                case NL_NEGOTIATE_RESPONSE:
                        ndr_print_uint32(ndr, name, r->dummy);