diff options
author | Günther Deschner <gd@samba.org> | 2008-01-08 22:56:44 -0600 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-01-08 17:03:01 -0600 |
commit | e3f0e64ef083cbad37c0e967e5ab3de6a840b7f9 (patch) | |
tree | bd44b305d571c2bd3bc135e3fa69fbbdbec738b9 /source4/pidl/lib | |
parent | 0f32132b884fa56fde806ba33d082456b53e0df9 (diff) | |
download | samba-e3f0e64ef083cbad37c0e967e5ab3de6a840b7f9.tar.gz samba-e3f0e64ef083cbad37c0e967e5ab3de6a840b7f9.tar.bz2 samba-e3f0e64ef083cbad37c0e967e5ab3de6a840b7f9.zip |
r26696: Some more minor pidl samba3 client cosmetics.
Guenther
(This used to be commit 7ee3fd43f964d3161c075dae8de73c77de146538)
Diffstat (limited to 'source4/pidl/lib')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm b/source4/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm index d6b6296bd8..01b77c0c9f 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm @@ -66,8 +66,11 @@ sub ParseFunction($$$) } $self->pidl(""); - $self->pidl("if (DEBUGLEVEL >= 10)"); - $self->pidl("\tNDR_PRINT_IN_DEBUG($fn->{NAME}, &r);"); + $self->pidl("if (DEBUGLEVEL >= 10) {"); + $self->indent; + $self->pidl("NDR_PRINT_IN_DEBUG($fn->{NAME}, &r);"); + $self->deindent; + $self->pidl("}"); $self->pidl(""); $self->pidl("status = cli_do_rpc_ndr(cli, mem_ctx, PI_$uif, &ndr_table_$if, $ufn, &r);"); $self->pidl(""); @@ -79,11 +82,16 @@ sub ParseFunction($$$) $self->pidl("}"); $self->pidl(""); - $self->pidl("if (DEBUGLEVEL >= 10)"); - $self->pidl("\tNDR_PRINT_OUT_DEBUG($fn->{NAME}, &r);"); + $self->pidl("if (DEBUGLEVEL >= 10) {"); + $self->indent; + $self->pidl("NDR_PRINT_OUT_DEBUG($fn->{NAME}, &r);"); + $self->deindent; + $self->pidl("}"); $self->pidl(""); $self->pidl("if (NT_STATUS_IS_ERR(status)) {"); - $self->pidl("\treturn status;"); + $self->indent; + $self->pidl("return status;"); + $self->deindent; $self->pidl("}"); $self->pidl(""); $self->pidl("/* Return variables */"); |