1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

cmd_srvsvc.c

(This used to be commit fcfbb3c430)
This commit is contained in:
Volker Lendecke 2003-02-17 21:04:09 +00:00
parent bc8c03b662
commit bf89801bd2

View File

@ -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)