From 1c6b0ff99e74809fafaa9135d4ba54bfd5ebe8f3 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 15 Sep 2001 03:57:12 +0000 Subject: Fix up NTSTATUS stuff in rpcclient's help function (This used to be commit 512e9a5f94ba71bdea2bdecb8f21f9daad51ef3a) --- source3/rpcclient/rpcclient.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3') diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 1b7f0f6bd4..ca0df63c35 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -267,7 +267,7 @@ void init_rpcclient_creds(struct ntuser_creds *creds, char* username, /* Display help on commands */ -static uint32 cmd_help(struct cli_state *cli, int argc, char **argv) +static NTSTATUS cmd_help(struct cli_state *cli, int argc, char **argv) { struct cmd_list *tmp; struct cmd_set *tmp_set; @@ -276,7 +276,7 @@ static uint32 cmd_help(struct cli_state *cli, int argc, char **argv) if (argc > 2) { printf("Usage: %s [command]\n", argv[0]); - return 0; + return NT_STATUS_OK; } /* Help on one command */ @@ -294,7 +294,7 @@ static uint32 cmd_help(struct cli_state *cli, int argc, char **argv) else printf("No help for %s\n", tmp_set->name); - return 0; + return NT_STATUS_OK; } tmp_set++; @@ -302,7 +302,7 @@ static uint32 cmd_help(struct cli_state *cli, int argc, char **argv) } printf("No such command: %s\n", argv[1]); - return 0; + return NT_STATUS_OK; } /* List all commands */ @@ -320,7 +320,7 @@ static uint32 cmd_help(struct cli_state *cli, int argc, char **argv) } } - return 0; + return NT_STATUS_OK; } /* Change the debug level */ -- cgit