summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-01-04 21:43:23 +0100
committerRichard Braun <rbraun@sceen.net>2018-01-04 21:43:23 +0100
commitfe5415c54b05853dbbe230fca0aea3623c3be1e2 (patch)
tree314a78810f8da40f2827da63219ec58d818ad40f
parent6954ce1ada3da96b87a842bd8f189fe54ad0aed0 (diff)
test_shell: use the SHELL_REGISTER_CMDS macro
-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);