aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pidl/lib/Parse/Pidl/Samba4/Header.pm
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2006-07-04 18:23:36 +0000
committerJörg Mayer <jmayer@loplof.de>2006-07-04 18:23:36 +0000
commita9924ae949751c93c119e509144ca2b6601a2a24 (patch)
tree28b694f76164c97b1a60601268805505db87adfe /tools/pidl/lib/Parse/Pidl/Samba4/Header.pm
parentb1215a0a85a000ef7456f7f7cc8783ac1eaa1c8a (diff)
Update to current samba branch (sorry, lost the samba changelog)
while maintaining the Ethereal -> Wireshark changes. svn path=/trunk/; revision=18655
Diffstat (limited to 'tools/pidl/lib/Parse/Pidl/Samba4/Header.pm')
-rw-r--r--tools/pidl/lib/Parse/Pidl/Samba4/Header.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/pidl/lib/Parse/Pidl/Samba4/Header.pm b/tools/pidl/lib/Parse/Pidl/Samba4/Header.pm
index 6fb3ee2eec..c9487115f5 100644
--- a/tools/pidl/lib/Parse/Pidl/Samba4/Header.pm
+++ b/tools/pidl/lib/Parse/Pidl/Samba4/Header.pm
@@ -60,7 +60,11 @@ sub HeaderElement($)
} else {
HeaderType($element, $element->{TYPE}, "");
pidl " ";
- my $numstar = $element->{POINTERS};
+ my $numstar = 0;
+ if (!has_property($element, "ref") or
+ has_property($element, "keepref")) {
+ $numstar += $element->{POINTERS};
+ }
if ($numstar >= 1) {
$numstar-- if Parse::Pidl::Typelist::scalar_is_reference($element->{TYPE});
}