diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-10-06 07:04:36 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:39:27 -0500 |
commit | 4812a5d3fd394cf1fdbba1eb01bb0d0b3b171628 (patch) | |
tree | ff2bd5f5ac2d52c9d63d41c8c61b2f4208db116a /source4 | |
parent | 78d0e79c9f9263e7f3798aa2e174a347ea1a3df1 (diff) | |
download | samba-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.pm | 4 |
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}}) { |