summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-10-06 07:04:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:27 -0500
commit4812a5d3fd394cf1fdbba1eb01bb0d0b3b171628 (patch)
treeff2bd5f5ac2d52c9d63d41c8c61b2f4208db116a /source4
parent78d0e79c9f9263e7f3798aa2e174a347ea1a3df1 (diff)
downloadsamba-4812a5d3fd394cf1fdbba1eb01bb0d0b3b171628.tar.gz
samba-4812a5d3fd394cf1fdbba1eb01bb0d0b3b171628.tar.bz2
samba-4812a5d3fd394cf1fdbba1eb01bb0d0b3b171628.zip
r10760: remove only one star from the pointers, and not from the stars that
come from the array nesting this fixes a compiler warning and but in the eventlog.h, where the idl uses nstring strings[num_strings] metze (This used to be commit c4a252bd4678ef991705aaaf91c03c697f2f568e)
Diffstat (limited to 'source4')
-rw-r--r--source4/pidl/lib/Parse/Pidl/Samba/Header.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba/Header.pm b/source4/pidl/lib/Parse/Pidl/Samba/Header.pm
index ed8952e746..f235a96cb8 100644
--- a/source4/pidl/lib/Parse/Pidl/Samba/Header.pm
+++ b/source4/pidl/lib/Parse/Pidl/Samba/Header.pm
@@ -60,13 +60,15 @@ sub HeaderElement($)
HeaderType($element, $element->{TYPE}, "");
pidl " ";
my $numstar = $element->{POINTERS};
+ if ($numstar >= 1) {
+ $numstar-- if Parse::Pidl::Typelist::scalar_is_reference($element->{TYPE});
+ }
foreach (@{$element->{ARRAY_LEN}})
{
next if is_constant($_) and
not has_property($element, "charset");
$numstar++;
}
- $numstar-- if Parse::Pidl::Typelist::scalar_is_reference($element->{TYPE});
pidl "*" foreach (1..$numstar);
pidl $element->{NAME};
foreach (@{$element->{ARRAY_LEN}}) {