summaryrefslogtreecommitdiff
path: root/pidl/lib/Parse
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-01-22 01:17:40 +0100
committerMichael Adam <obnox@samba.org>2009-01-22 08:16:54 +0100
commit842d24f23dad527f47b2cbbc8c4ac21b532d181d (patch)
treed9f04490c93bbd5aad153262db1cac2c4e701af5 /pidl/lib/Parse
parent989ad44d32c2e77972a966d91f1813b0b929f83b (diff)
downloadsamba-842d24f23dad527f47b2cbbc8c4ac21b532d181d.tar.gz
samba-842d24f23dad527f47b2cbbc8c4ac21b532d181d.tar.bz2
samba-842d24f23dad527f47b2cbbc8c4ac21b532d181d.zip
pidl: reduce implicit cast warnings in gen_ndr server code
Michael
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;";