diff options
author | Ian Moffett <ian@osmora.org> | 2025-06-09 00:03:33 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-06-09 00:03:33 -0400 |
commit | a56be51170fa408d6735daafafc28bcc51f8ff92 (patch) | |
tree | ecac89e6412f755f0c4e3c3c15102a8d9e4bc96b /usr.bin | |
parent | cb92abb0015b637b2b99caf416c668c74b297e2d (diff) |
usr.bin: osh: Make internal routines static
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/osh/osh.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/osh/osh.c b/usr.bin/osh/osh.c index f02b019..1ac3879 100644 --- a/usr.bin/osh/osh.c +++ b/usr.bin/osh/osh.c @@ -72,31 +72,31 @@ struct command { void (*func)(int argc, char *argv[]); }; -void +static void cmd_help(int argc, char *argv[]) { puts(HELP); } -void +static void cmd_exit(int argc, char *argv[]) { running = 0; } -void +static void cmd_reboot(int argc, char *argv[]) { cpu_reboot(REBOOT_RESET); } -void +static void cmd_shutdown(int argc, char *argv[]) { cpu_reboot(REBOOT_POWEROFF | REBOOT_HALT); } -void +static void cmd_echo(int argc, char *argv[]) { for (i = 1; i < argc; i++) { @@ -106,7 +106,7 @@ cmd_echo(int argc, char *argv[]) putchar('\n'); } -void +static void cmd_bell(int argc, char *argv[]) { const char *usage_str = "usage: bell [on/off]"; @@ -127,7 +127,7 @@ cmd_bell(int argc, char *argv[]) } } -int +static int parse_args(char *input, char *argv[], int max_args) { int argc = 0; |