From c76dd1404041f42d3a398339cefbeb60f22d2910 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 4 Sep 2001 10:57:29 +0000 Subject: it now all compiles - so try enabling it by default and see what explodes on the build farm (This used to be commit 5bb7e4f0f65edf1db20245f403cbe81833134240) --- source3/rpcclient/cmd_srvsvc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source3/rpcclient/cmd_srvsvc.c') diff --git a/source3/rpcclient/cmd_srvsvc.c b/source3/rpcclient/cmd_srvsvc.c index 63d84db9c8..e5addc1acc 100644 --- a/source3/rpcclient/cmd_srvsvc.c +++ b/source3/rpcclient/cmd_srvsvc.c @@ -182,17 +182,17 @@ static void display_srv_info_102(SRV_INFO_102 *sv102) /* Server query info */ -static uint32 cmd_srvsvc_srv_query_info(struct cli_state *cli, int argc, +static NTSTATUS cmd_srvsvc_srv_query_info(struct cli_state *cli, int argc, char **argv) { uint32 info_level = 101; SRV_INFO_CTR ctr; TALLOC_CTX *mem_ctx; - uint32 result = NT_STATUS_UNSUCCESSFUL; + NTSTATUS result = NT_STATUS_UNSUCCESSFUL; if (argc > 2) { printf("Usage: %s [infolevel]\n", argv[0]); - return 0; + return NT_STATUS_OK; } if (argc == 2) @@ -210,9 +210,9 @@ static uint32 cmd_srvsvc_srv_query_info(struct cli_state *cli, int argc, goto done; } - if ((result = cli_srvsvc_net_srv_get_info(cli, mem_ctx, info_level, - &ctr) - != NT_STATUS_OK)) { + result = cli_srvsvc_net_srv_get_info(cli, mem_ctx, info_level, + &ctr); + if (!NT_STATUS_IS_OK(result)) { goto done; } -- cgit