summaryrefslogtreecommitdiff
path: root/kern/shutdown.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-07-25 01:16:24 +0200
committerRichard Braun <rbraun@sceen.net>2018-07-25 01:16:24 +0200
commitd3e43f5bfda0bdad7a829a7ed8c1272a395b196b (patch)
tree897e7851a995f243afdfa5999d786541781f56a9 /kern/shutdown.c
parent3a175471f4246c429e89460ab42cd6640427532a (diff)
kern/{fmt,shell}: update from upstream
The shell module has been "objectified" and now supports multiple instances with shareable command sets.
Diffstat (limited to 'kern/shutdown.c')
-rw-r--r--kern/shutdown.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/kern/shutdown.c b/kern/shutdown.c
index 510911fe..57eb66e4 100644
--- a/kern/shutdown.c
+++ b/kern/shutdown.c
@@ -29,8 +29,9 @@ static struct plist shutdown_ops_list;
#ifdef CONFIG_SHELL
static void
-shutdown_shell_halt(int argc, char **argv)
+shutdown_shell_halt(struct shell *shell, int argc, char **argv)
{
+ (void)shell;
(void)argc;
(void)argv;
@@ -38,8 +39,9 @@ shutdown_shell_halt(int argc, char **argv)
}
static void
-shutdown_shell_reboot(int argc, char **argv)
+shutdown_shell_reboot(struct shell *shell, int argc, char **argv)
{
+ (void)shell;
(void)argc;
(void)argv;
@@ -58,7 +60,7 @@ static struct shell_cmd shutdown_shell_cmds[] = {
static int __init
shutdown_setup_shell(void)
{
- SHELL_REGISTER_CMDS(shutdown_shell_cmds);
+ SHELL_REGISTER_CMDS(shutdown_shell_cmds, shell_get_main_cmd_set());
return 0;
}