diff options
author | Leo C | 2018-07-21 13:13:16 +0200 |
---|---|---|
committer | Leo C | 2018-07-21 13:13:16 +0200 |
commit | fcf1d5b30bd3b341fb7596aef395f347c6dc97b4 (patch) | |
tree | ad2620ca61db64ccad3440b7168cfe59f9cc245f /avr/cli.c | |
parent | 862110cc1e0a71418f350758eb229ecfcb0d7b37 (diff) | |
download | z180-stamp-fcf1d5b30bd3b341fb7596aef395f347c6dc97b4.zip |
commandtable, flags: int --> uint8_t/uint_fast8_t. Macro UNUSED for Parameters/Variables
# Conflicts:
# avr/cmd_fat.c
Diffstat (limited to 'avr/cli.c')
-rw-r--r-- | avr/cli.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -242,7 +242,7 @@ char *process_macros(char *input) * @returns * */ -static int cli_run_command(const char *cmd, int flag) +static int cli_run_command(const char *cmd, uint_fast8_t flag) { char cmdbuf[strlen(cmd) + 1]; /* working copy of cmd */ char *token; /* start of token in cmdbuf */ @@ -369,7 +369,7 @@ static int cli_run_command_list(const char *cmd) * @param flag Execution flags (CMD_FLAG_...) * @return 0 on success, or != 0 on error. */ -int run_command(const char *cmd, int flag) +int run_command(const char *cmd, uint_fast8_t flag) { /* * cli_run_command can return 0 or 1 for success, so clean up @@ -388,7 +388,7 @@ int run_command(const char *cmd, int flag) * @param flag Execution flags (CMD_FLAG_...) * @return 0 (not repeatable) or 1 (repeatable) on success, -1 on error. */ -static int run_command_repeatable(const char *cmd, int flag) +static int run_command_repeatable(const char *cmd, uint_fast8_t flag) { return cli_run_command(cmd, flag); } @@ -407,7 +407,7 @@ void cli_loop(void) { char *lastcommand = NULL; int len; - int flag; + uint_fast8_t flag; int rc = 1; for (;;) { |