summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-01-12 13:01:57 +0100
committerAndreas Schneider <asn@samba.org>2011-01-13 14:12:23 +0100
commit1ea6dd35f4ebca968e23602ba009f45e4f914161 (patch)
treea65dc5ad96dbeeb6ccef01c22e392e18d93ad179
parent4189c00caeaa9cdd71d9e5cbb35e2efdd9ad3ac6 (diff)
downloadsamba-1ea6dd35f4ebca968e23602ba009f45e4f914161.tar.gz
samba-1ea6dd35f4ebca968e23602ba009f45e4f914161.tar.bz2
samba-1ea6dd35f4ebca968e23602ba009f45e4f914161.zip
s3-smbtree: prefer dcerpc_srvsvc_X functions.
Guenther Signed-off-by: Andreas Schneider <asn@samba.org>
-rw-r--r--source3/utils/smbtree.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/utils/smbtree.c b/source3/utils/smbtree.c
index c6d4be0e44..abd69dddd2 100644
--- a/source3/utils/smbtree.c
+++ b/source3/utils/smbtree.c
@@ -21,7 +21,7 @@
#include "includes.h"
#include "popt_common.h"
-#include "../librpc/gen_ndr/cli_srvsvc.h"
+#include "../librpc/gen_ndr/ndr_srvsvc_c.h"
static int use_bcast;
@@ -158,6 +158,7 @@ static bool get_rpc_shares(struct cli_state *cli,
int i;
uint32_t resume_handle = 0;
uint32_t total_entries = 0;
+ struct dcerpc_binding_handle *b;
mem_ctx = talloc_new(NULL);
if (mem_ctx == NULL) {
@@ -175,13 +176,15 @@ static bool get_rpc_shares(struct cli_state *cli,
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, mem_ctx,
+ status = dcerpc_srvsvc_NetShareEnumAll(b, mem_ctx,
pipe_hnd->desthost,
&info_ctr,
0xffffffff,