diff options
Diffstat (limited to 'lib/shell.h')
-rw-r--r-- | lib/shell.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/shell.h b/lib/shell.h index b5ce7d5..0ba0edc 100644 --- a/lib/shell.h +++ b/lib/shell.h @@ -26,8 +26,8 @@ * Minimalist shell for embedded systems. */ -#ifndef _SHELL_H -#define _SHELL_H +#ifndef SHELL_H +#define SHELL_H #include <errno.h> #include <stddef.h> @@ -39,14 +39,14 @@ #define SHELL_REGISTER_CMDS(cmds) \ MACRO_BEGIN \ - size_t ___i; \ - int ___error; \ + size_t i___; \ + int error___; \ \ - for (___i = 0; ___i < ARRAY_SIZE(cmds); ___i++) { \ - ___error = shell_cmd_register(&(cmds)[___i]); \ + for (i___ = 0; i___ < ARRAY_SIZE(cmds); i___++) { \ + error___ = shell_cmd_register(&(cmds)[i___]); \ \ - if (___error) { \ - panic("%s: %s", __func__, strerror(___error)); \ + if (error___) { \ + panic("%s: %s", __func__, strerror(error___)); \ } \ } \ MACRO_END @@ -96,4 +96,4 @@ void shell_setup(void); */ int shell_cmd_register(struct shell_cmd *cmd); -#endif /* _SHELL_H */ +#endif /* SHELL_H */ |