diff options
author | Volker Lendecke <vl@samba.org> | 2008-04-20 14:05:25 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-04-20 14:08:16 +0200 |
commit | b9cc05506273e5ce3398a5912b9c9e5989717480 (patch) | |
tree | f232ff8840eeecac5e855032852f448d27c2db4b /source3/rpcclient | |
parent | 0c17878e2189431fcb7d63c4ddd0f4647ba411b9 (diff) | |
download | samba-b9cc05506273e5ce3398a5912b9c9e5989717480.tar.gz samba-b9cc05506273e5ce3398a5912b9c9e5989717480.tar.bz2 samba-b9cc05506273e5ce3398a5912b9c9e5989717480.zip |
Introduce rpc_pipe_np_smb_conn()
This abstracts away all references to rpc_pipe_client->cli, the only reference
is now in cli_pipe.c.
(This used to be commit c56e1c08cef107ff33a34346ceeca3475a102b19)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_spoolss.c | 2 | ||||
-rw-r--r-- | source3/rpcclient/cmd_test.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c index eb42836b6c..c89f987446 100644 --- a/source3/rpcclient/cmd_spoolss.c +++ b/source3/rpcclient/cmd_spoolss.c @@ -2645,7 +2645,7 @@ static WERROR cmd_spoolss_printercmp(struct rpc_pipe_client *cli, { fstring printername, servername1, servername2; char *printername_path = NULL; - struct cli_state *cli_server1 = cli->cli; + struct cli_state *cli_server1 = rpc_pipe_np_smb_conn(cli); struct cli_state *cli_server2 = NULL; struct rpc_pipe_client *cli2 = NULL; POLICY_HND hPrinter1, hPrinter2; diff --git a/source3/rpcclient/cmd_test.c b/source3/rpcclient/cmd_test.c index f9ea5c0fc2..dd956604cc 100644 --- a/source3/rpcclient/cmd_test.c +++ b/source3/rpcclient/cmd_test.c @@ -30,10 +30,12 @@ static NTSTATUS cmd_testme(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, d_printf("testme\n"); - lsa_pipe = cli_rpc_pipe_open_noauth(cli->cli, PI_LSARPC, &status); + lsa_pipe = cli_rpc_pipe_open_noauth(rpc_pipe_np_smb_conn(cli), + PI_LSARPC, &status); if (lsa_pipe == NULL) goto done; - samr_pipe = cli_rpc_pipe_open_noauth(cli->cli, PI_SAMR, &status); + samr_pipe = cli_rpc_pipe_open_noauth(rpc_pipe_np_smb_conn(cli), + PI_SAMR, &status); if (samr_pipe == NULL) goto done; status = rpccli_lsa_open_policy(lsa_pipe, mem_ctx, False, |