Author: jerry
Date: 2006-09-11 22:09:29 +0000 (Mon, 11 Sep 2006)
New Revision: 18405

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18405

Log:
Now that POLICY_HND == struct policy_handle, we can 
make rpccli_lsa_close() a real one line wrapper for 
rpccli_lsa_Close().  

I'm still keeping the wrapper for now because I'm not sure
what we will do about a usable client API.  I don't think
calling the autogenerated client code directly is a good idea
as the IDL is still evolving.



Modified:
   branches/SAMBA_3_0/source/rpc_client/cli_lsarpc.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_client/cli_lsarpc.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_client/cli_lsarpc.c   2006-09-11 22:02:34 UTC 
(rev 18404)
+++ branches/SAMBA_3_0/source/rpc_client/cli_lsarpc.c   2006-09-11 22:09:29 UTC 
(rev 18405)
@@ -132,14 +132,7 @@
 NTSTATUS rpccli_lsa_close(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, 
                          POLICY_HND *pol)
 {
-       struct policy_handle policy;
-       
-       if ( !pol )
-               return NT_STATUS_NO_MEMORY;
-               
-       memcpy( &policy, pol, sizeof(policy) );
-
-       return rpccli_lsa_Close( cli, mem_ctx, &policy );
+       return rpccli_lsa_Close( cli, mem_ctx, pol);
 }
 
 /** Lookup a list of sids */

Reply via email to