summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-02-17 21:04:09 +0000
committerVolker Lendecke <vlendec@samba.org>2003-02-17 21:04:09 +0000
commitbf89801bd2bfcc1044bc2a8da01d9014601ab89c (patch)
tree63423812c8e3cd3b286bb56d6b8007422af80118 /source3/rpcclient
parentbc8c03b66221e83417325a495397fa5045780b8d (diff)
downloadsamba-bf89801bd2bfcc1044bc2a8da01d9014601ab89c.tar.gz
samba-bf89801bd2bfcc1044bc2a8da01d9014601ab89c.tar.bz2
samba-bf89801bd2bfcc1044bc2a8da01d9014601ab89c.zip
cmd_srvsvc.c
(This used to be commit fcfbb3c430b2e48819c0c1852bc154661c4b7adf)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_srvsvc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_srvsvc.c b/source3/rpcclient/cmd_srvsvc.c
index 282cbb3b99..4538290ed9 100644
--- a/source3/rpcclient/cmd_srvsvc.c
+++ b/source3/rpcclient/cmd_srvsvc.c
@@ -186,7 +186,7 @@ static NTSTATUS cmd_srvsvc_srv_query_info(struct cli_state *cli,
{
uint32 info_level = 101;
SRV_INFO_CTR ctr;
- NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
+ WERROR result;
if (argc > 2) {
printf("Usage: %s [infolevel]\n", argv[0]);
@@ -199,7 +199,7 @@ static NTSTATUS cmd_srvsvc_srv_query_info(struct cli_state *cli,
result = cli_srvsvc_net_srv_get_info(cli, mem_ctx, info_level,
&ctr);
- if (!NT_STATUS_IS_OK(result)) {
+ if (!W_ERROR_IS_OK(result)) {
goto done;
}
@@ -218,7 +218,7 @@ static NTSTATUS cmd_srvsvc_srv_query_info(struct cli_state *cli,
}
done:
- return result;
+ return W_ERROR_IS_OK(result) ? NT_STATUS_OK : NT_STATUS_UNSUCCESSFUL;
}
static void display_share_info_1(SRV_SHARE_INFO_1 *info1)