shell: make shell_root_cmd_find function static
Function shell_root_cmd_find was only used in shell_utils.c file. Hence it is changed to static and renamed to root_cmd_find. Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
This commit is contained in:
parent
0738e1f04d
commit
31bc7d2d1e
2 changed files with 2 additions and 4 deletions
|
@ -228,7 +228,7 @@ static inline uint32_t shell_root_cmd_count(void)
|
|||
}
|
||||
|
||||
/* Function returning pointer to parent command matching requested syntax. */
|
||||
const struct shell_static_entry *shell_root_cmd_find(const char *syntax)
|
||||
static const struct shell_static_entry *root_cmd_find(const char *syntax)
|
||||
{
|
||||
const size_t cmd_count = shell_root_cmd_count();
|
||||
const struct shell_cmd_entry *cmd;
|
||||
|
@ -344,7 +344,7 @@ int shell_set_root_cmd(const char *cmd)
|
|||
{
|
||||
const struct shell_static_entry *entry;
|
||||
|
||||
entry = cmd ? shell_root_cmd_find(cmd) : NULL;
|
||||
entry = cmd ? root_cmd_find(cmd) : NULL;
|
||||
|
||||
if (cmd && (entry == NULL)) {
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue