mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 11:23:07 +08:00
Remove the const cast from the initialization of boardioc_symtab_s::symtab
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:

committed by
Petro Karashchenko

parent
4d79a5cbaf
commit
dab972b907
@@ -135,7 +135,7 @@ void nsh_initialize(void)
|
||||
#if defined(CONFIG_NSH_SYMTAB)
|
||||
/* Make sure that we are using our symbol table */
|
||||
|
||||
symdesc.symtab = (FAR struct symtab_s *)CONFIG_NSH_SYMTAB_ARRAYNAME; /* Discard 'const' */
|
||||
symdesc.symtab = CONFIG_NSH_SYMTAB_ARRAYNAME;
|
||||
symdesc.nsymbols = CONFIG_NSH_SYMTAB_COUNTNAME;
|
||||
|
||||
boardctl(BOARDIOC_APP_SYMTAB, (uintptr_t)&symdesc);
|
||||
|
Reference in New Issue
Block a user