summaryrefslogtreecommitdiff
path: root/source4/pidl
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-08-28 17:12:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:51 -0500
commit66314777f6667995154b9418aba7dfb26a2b3c88 (patch)
treecffae5c4268d47fb8c8b12b1bf88a4ff29751b39 /source4/pidl
parent5ed074715a7d63b803d5eaff3144a48304201df3 (diff)
downloadsamba-66314777f6667995154b9418aba7dfb26a2b3c88.tar.gz
samba-66314777f6667995154b9418aba7dfb26a2b3c88.tar.bz2
samba-66314777f6667995154b9418aba7dfb26a2b3c88.zip
r17887: fix c++ warnings
metze (This used to be commit ccef1f729089939b9250f1b177d5241f8baaa5eb)
Diffstat (limited to 'source4/pidl')
-rw-r--r--source4/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm
index c35310785a..abc3b786b9 100644
--- a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm
+++ b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm
@@ -30,7 +30,7 @@ sub gen_dispatch_switch($)
next if not defined($fn->{OPNUM});
pidl "\tcase $fn->{OPNUM}: {\n";
- pidl "\t\tstruct $fn->{NAME} *r2 = r;\n";
+ pidl "\t\tstruct $fn->{NAME} *r2 = (struct $fn->{NAME} *)r;\n";
pidl "\t\tif (DEBUGLEVEL >= 10) {\n";
pidl "\t\t\tNDR_PRINT_FUNCTION_DEBUG($fn->{NAME}, NDR_IN, r2);\n";
pidl "\t\t}\n";
@@ -56,7 +56,7 @@ sub gen_reply_switch($)
next if not defined($fn->{OPNUM});
pidl "\tcase $fn->{OPNUM}: {\n";
- pidl "\t\tstruct $fn->{NAME} *r2 = r;\n";
+ pidl "\t\tstruct $fn->{NAME} *r2 = (struct $fn->{NAME} *)r;\n";
pidl "\t\tif (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {\n";
pidl "\t\t\tDEBUG(5,(\"function $fn->{NAME} replied async\\n\"));\n";
pidl "\t\t}\n";