summaryrefslogtreecommitdiff
path: root/pidl/lib/Parse
diff options
context:
space:
mode:
Diffstat (limited to 'pidl/lib/Parse')
-rw-r--r--pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
index 6604abe91e..33dc68e753 100644
--- a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
+++ b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
@@ -234,7 +234,7 @@ sub ParseDispatchFunction($)
my $op = "NDR_".uc($fn->{NAME});
pidl "case $op: {";
indent;
- pidl "struct $fn->{NAME} *r = _r;";
+ pidl "struct $fn->{NAME} *r = (struct $fn->{NAME} *)_r;";
CallWithStruct("cli->pipes_struct", "mem_ctx", $fn,
sub { pidl "return NT_STATUS_NO_MEMORY;"; });
pidl "return NT_STATUS_OK;";