shell: added static to char_replace function

Function char_replace is only used in shell_ops.c file.
Added keyword static to function definition and removed
declaration from shell_ops.h

Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
This commit is contained in:
Jakub Rzeszutko 2019-01-28 19:06:58 +01:00 committed by Carles Cufí
commit 770261045e
2 changed files with 1 additions and 3 deletions

View file

@ -258,7 +258,7 @@ static void data_insert(const struct shell *shell, const char *data, u16_t len)
reprint_from_cursor(shell, after, false);
}
void char_replace(const struct shell *shell, char data)
static void char_replace(const struct shell *shell, char data)
{
shell->ctx->cmd_buff[shell->ctx->cmd_buff_pos++] = data;

View file

@ -181,8 +181,6 @@ void shell_op_cursor_home_move(const struct shell *shell);
/* Function moves cursor to end of command. */
void shell_op_cursor_end_move(const struct shell *shell);
void char_replace(const struct shell *shell, char data);
void shell_op_char_insert(const struct shell *shell, char data);
void shell_op_char_backspace(const struct shell *shell);