From 842d24f23dad527f47b2cbbc8c4ac21b532d181d Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 22 Jan 2009 01:17:40 +0100 Subject: pidl: reduce implicit cast warnings in gen_ndr server code Michael --- pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pidl') 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;"; -- cgit