diff options
author | Günther Deschner <gd@samba.org> | 2011-01-12 12:56:55 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2011-01-13 14:11:29 +0100 |
commit | fccfd29283154d9ec252fcb4c26f21301150dc5f (patch) | |
tree | 32ca831907569ac8160cd20a6eddcc8016c5e812 | |
parent | 1ef94dffe6e0b86e0ff30f7d37dc81fc251f6d95 (diff) | |
download | samba-fccfd29283154d9ec252fcb4c26f21301150dc5f.tar.gz samba-fccfd29283154d9ec252fcb4c26f21301150dc5f.tar.bz2 samba-fccfd29283154d9ec252fcb4c26f21301150dc5f.zip |
s3-smbclient: prefer dcerpc_srvsvc_X functions.
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
-rw-r--r-- | source3/client/client.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 8486bb271c..33c1a24fcc 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -24,7 +24,7 @@ #include "includes.h" #include "popt_common.h" #include "client/client_proto.h" -#include "../librpc/gen_ndr/cli_srvsvc.h" +#include "../librpc/gen_ndr/ndr_srvsvc_c.h" #include "../lib/util/select.h" #include "system/readline.h" #include "../libcli/smbreadline/smbreadline.h" @@ -3973,6 +3973,7 @@ static bool browse_host_rpc(bool sort) uint32_t resume_handle = 0; uint32_t total_entries = 0; int i; + struct dcerpc_binding_handle *b; status = cli_rpc_pipe_open_noauth(cli, &ndr_table_srvsvc.syntax_id, &pipe_hnd); @@ -3984,13 +3985,15 @@ static bool browse_host_rpc(bool sort) return false; } + b = pipe_hnd->binding_handle; + ZERO_STRUCT(info_ctr); ZERO_STRUCT(ctr1); info_ctr.level = 1; info_ctr.ctr.ctr1 = &ctr1; - status = rpccli_srvsvc_NetShareEnumAll(pipe_hnd, frame, + status = dcerpc_srvsvc_NetShareEnumAll(b, frame, pipe_hnd->desthost, &info_ctr, 0xffffffff, |