summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_srvsvc.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-09-04 10:57:29 +0000
committerAndrew Tridgell <tridge@samba.org>2001-09-04 10:57:29 +0000
commitc76dd1404041f42d3a398339cefbeb60f22d2910 (patch)
treec5ad09bfcf50336adcaa860a1f3f0979a831b03f /source3/rpcclient/cmd_srvsvc.c
parentb5b9c46c0fa3a98999f5afbda497e88a6d319151 (diff)
downloadsamba-c76dd1404041f42d3a398339cefbeb60f22d2910.tar.gz
samba-c76dd1404041f42d3a398339cefbeb60f22d2910.tar.bz2
samba-c76dd1404041f42d3a398339cefbeb60f22d2910.zip
it now all compiles - so try enabling it by default and see what explodes on the build farm
(This used to be commit 5bb7e4f0f65edf1db20245f403cbe81833134240)
Diffstat (limited to 'source3/rpcclient/cmd_srvsvc.c')
-rw-r--r--source3/rpcclient/cmd_srvsvc.c12
1 files changed, 6 insertions, 6 deletions
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;
}