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:
parent
e7b55a6eb5
commit
770261045e
2 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue