summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-09-15 03:57:12 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-09-15 03:57:12 +0000
commit1c6b0ff99e74809fafaa9135d4ba54bfd5ebe8f3 (patch)
tree356864f02f79493f7b746aa9205378fada8cabc8
parent9a846daf441c3d82e4fc750382fd12fcb8fb9a6d (diff)
downloadsamba-1c6b0ff99e74809fafaa9135d4ba54bfd5ebe8f3.tar.gz
samba-1c6b0ff99e74809fafaa9135d4ba54bfd5ebe8f3.tar.bz2
samba-1c6b0ff99e74809fafaa9135d4ba54bfd5ebe8f3.zip
Fix up NTSTATUS stuff in rpcclient's help function
(This used to be commit 512e9a5f94ba71bdea2bdecb8f21f9daad51ef3a)
-rw-r--r--source3/rpcclient/rpcclient.c10
1 files changed, 5 insertions, 5 deletions
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 */