mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
nshlib: move g_builtin_prompt from data to rodata
1. move g_builtin_prompt from data to rodata 2. add g_ prefix to some global variables Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
@@ -886,7 +886,7 @@ static inline void help_builtins(FAR struct nsh_vtbl_s *vtbl)
|
||||
|
||||
char line[HELP_LINELEN + HELP_TABSIZE + 1];
|
||||
|
||||
static const char *g_builtin_prompt = "\nBuiltin Apps:\n";
|
||||
static FAR const char *const g_builtin_prompt = "\nBuiltin Apps:\n";
|
||||
|
||||
/* Count the number of built-in commands and get the optimal column width */
|
||||
|
||||
|
Reference in New Issue
Block a user