git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
989ad44
)
pidl: reduce implicit cast warnings in gen_ndr server code
author
Michael Adam
<obnox@samba.org>
Thu, 22 Jan 2009 00:17:40 +0000
(
01:17
+0100)
committer
Michael Adam
<obnox@samba.org>
Thu, 22 Jan 2009 07:16:54 +0000
(08:16 +0100)
Michael
pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
patch
|
blob
|
history
diff --git
a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
index 6604abe91e3f2c16b3074a24650f2197018740ce..33dc68e753f242b9bce9650f0506db5b60016ae0 100644
(file)
--- 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;";