summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/build/pidl/swig.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/build/pidl/swig.pm b/source4/build/pidl/swig.pm
index 7fad25d258..1ddb54c77b 100644
--- a/source4/build/pidl/swig.pm
+++ b/source4/build/pidl/swig.pm
@@ -216,7 +216,7 @@ sub FieldToPython($$)
my($extra_args) = "";
if (isunion($e->{TYPE})) {
- $extra_args = ", switch_is";
+ $extra_args = ", $e->{NAME}_switch_is";
}
if ($e->{POINTERS} == 0) {
@@ -291,7 +291,7 @@ sub ParseFunction($)
foreach my $e (@{$fn->{DATA}}) {
if (isunion($e->{TYPE})) {
- $result .= ", int switch_is";
+ $result .= ", int $e->{NAME}_switch_is";
}
}
$result .= ")\n";