summaryrefslogtreecommitdiff
path: root/test/test_shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_shell.c')
-rw-r--r--test/test_shell.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/test_shell.c b/test/test_shell.c
index 5246669..3e44ba3 100644
--- a/test/test_shell.c
+++ b/test/test_shell.c
@@ -87,16 +87,12 @@ int
main(int argc, char *argv[])
{
struct termios termios;
- unsigned int i;
int ret;
(void)argc;
(void)argv;
- for (i = 0; i < ARRAY_SIZE(test_shell_cmds); i++) {
- ret = shell_cmd_register(&test_shell_cmds[i]);
- error_check(ret, "shell_cmd_register");
- }
+ SHELL_REGISTER_CMDS(test_shell_cmds);
setbuf(stdin, NULL);
ret = tcgetattr(fileno(stdin), &termios);