summaryrefslogtreecommitdiff
path: root/source4/pidl/lib/Parse/Pidl/Samba3/Server.pm
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-10-04 19:38:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:24 -0500
commit9879bc6aa6c7997220079b3501b9a4fb3682c813 (patch)
treea447269ee5ecdbbfe9e62a04bf724e4bba896355 /source4/pidl/lib/Parse/Pidl/Samba3/Server.pm
parenteea74cde05c1532d59b9f8ecc4f88c191a4b200f (diff)
downloadsamba-9879bc6aa6c7997220079b3501b9a4fb3682c813.tar.gz
samba-9879bc6aa6c7997220079b3501b9a4fb3682c813.tar.bz2
samba-9879bc6aa6c7997220079b3501b9a4fb3682c813.zip
r10717: Another bunch of small updates. All generated files except parse_dfs.c
compile now when generated from Samba4's dfs.idl. (This used to be commit 2b315b1942e77640eca8e0a3347b2a9ed1920f6a)
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl/Samba3/Server.pm')
-rw-r--r--source4/pidl/lib/Parse/Pidl/Samba3/Server.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba3/Server.pm b/source4/pidl/lib/Parse/Pidl/Samba3/Server.pm
index 0372cf1117..3f1f4645a1 100644
--- a/source4/pidl/lib/Parse/Pidl/Samba3/Server.pm
+++ b/source4/pidl/lib/Parse/Pidl/Samba3/Server.pm
@@ -33,13 +33,17 @@ sub ParseFunction($$)
indent;
pidl uc("$if->{NAME}_q_$fn->{NAME}") . " q_u;";
pidl uc("$if->{NAME}_r_$fn->{NAME}") . " r_u;";
- pidl "prs_struct *data = &p->in_data.data";
- pidl "prs_struct *rdata = &p->out_data.rdata";
+ pidl "prs_struct *data = &p->in_data.data;";
+ pidl "prs_struct *rdata = &p->out_data.rdata;";
pidl "";
pidl "if (!$if->{NAME}_io_q_$fn->{NAME}(\"\", &q_u, data, 0))";
pidl "\treturn False;";
pidl "";
- pidl "r_u.status = _$fn->{NAME}(p, &q_u, &r_u);";
+ if ($fn->{RETURN_TYPE}) {
+ pidl "r_u.status = _$fn->{NAME}(p, &q_u, &r_u);";
+ } else {
+ pidl "_$fn->{NAME}(p, &q_u, &r_u);";
+ }
pidl "";
pidl "if (!$if->{NAME}_io_r_$fn->{NAME}(\"\", &r_u, rdata, 0))";
pidl "\treturn False;";