diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-09-22 05:36:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:01:02 -0500 |
commit | e8b442c964fd01482dcae4ded14f3cc9cf16bda5 (patch) | |
tree | d62e611d32da21b8fabb968f1ad9b6714c59b050 /source3/client | |
parent | ca1951158416c06b119504886147c60e93350ad6 (diff) | |
download | samba-e8b442c964fd01482dcae4ded14f3cc9cf16bda5.tar.gz samba-e8b442c964fd01482dcae4ded14f3cc9cf16bda5.tar.bz2 samba-e8b442c964fd01482dcae4ded14f3cc9cf16bda5.zip |
r18813: the generated rpccli_ functions give NTSTATUS
metze
(This used to be commit 4a198cebe37d74437a8d526aff1139f1668bcd37)
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/client.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index a8708a001e..2cc26f4e18 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -2726,7 +2726,6 @@ static BOOL browse_host_rpc(BOOL sort) struct rpc_pipe_client *pipe_hnd; TALLOC_CTX *mem_ctx; uint32 enum_hnd = 0; - WERROR werr; union srvsvc_NetShareCtr ctr; int i; uint32 level; @@ -2749,10 +2748,10 @@ static BOOL browse_host_rpc(BOOL sort) level = 1; - werr = rpccli_srvsvc_NetShareEnum(pipe_hnd, mem_ctx, NULL, &level, &ctr, + status = rpccli_srvsvc_NetShareEnum(pipe_hnd, mem_ctx, NULL, &level, &ctr, 0xffffffff, &numentries, &enum_hnd); - if (!W_ERROR_IS_OK(werr)) { + if (!NT_STATUS_IS_OK(status)) { TALLOC_FREE(mem_ctx); cli_rpc_pipe_close(pipe_hnd); return False; |