From 6563c2b7e4c15cf220ed618da72331d0aca4e282 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 19 Feb 2009 10:32:48 +0100 Subject: pidl:NDR/Parser: don't call [noopnum] function when creating the ndr_interface_table metze --- pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm index 84752dac0d..af6885f67a 100644 --- a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm +++ b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm @@ -2236,7 +2236,7 @@ sub AuthServiceStruct($$$) sub FunctionCallEntry($$) { my ($self, $d) = @_; - return if not defined($d->{OPNUM}); + return 0 if not defined($d->{OPNUM}); $self->pidl("\t{"); $self->pidl("\t\t\"$d->{NAME}\","); $self->pidl("\t\tsizeof(struct $d->{NAME}),"); @@ -2245,6 +2245,7 @@ sub FunctionCallEntry($$) $self->pidl("\t\t(ndr_print_function_t) ndr_print_$d->{NAME},"); $self->pidl("\t\t".($d->{ASYNC}?"true":"false").","); $self->pidl("\t},"); + return 1; } ##################################################################### @@ -2261,8 +2262,7 @@ sub FunctionTable($$) $self->pidl("static const struct ndr_interface_call $interface->{NAME}\_calls[] = {"); foreach my $d (@{$interface->{INHERITED_FUNCTIONS}},@{$interface->{FUNCTIONS}}) { - $self->FunctionCallEntry($d); - $count++; + $count += $self->FunctionCallEntry($d); } $self->pidl("\t{ NULL, 0, NULL, NULL, NULL, false }"); $self->pidl("};"); -- cgit