summaryrefslogtreecommitdiff
path: root/pidl/lib/Parse
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-02-19 10:32:48 +0100
committerStefan Metzmacher <metze@samba.org>2009-02-19 11:13:33 +0100
commit6563c2b7e4c15cf220ed618da72331d0aca4e282 (patch)
tree9d2077eefa93cb124bf1e8f304a2c01a288ad2e1 /pidl/lib/Parse
parent96b3242f124d60fd8d8b6f5a34b57c26c42dfd14 (diff)
downloadsamba-6563c2b7e4c15cf220ed618da72331d0aca4e282.tar.gz
samba-6563c2b7e4c15cf220ed618da72331d0aca4e282.tar.bz2
samba-6563c2b7e4c15cf220ed618da72331d0aca4e282.zip
pidl:NDR/Parser: don't call [noopnum] function when creating the ndr_interface_table
metze
Diffstat (limited to 'pidl/lib/Parse')
-rw-r--r--pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm6
1 files 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("};");