mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 16:59:28 +08:00
Fix a couple of warnings in last commit (one was really an error).
This commit is contained in:
@@ -199,7 +199,7 @@ FAR const char *builtin_getname(int index);
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
FAR const struct builtin_s *builtin_for_index(int index);
|
FAR struct builtin_s const *builtin_for_index(int index);
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
|
|||||||
@@ -38,7 +38,10 @@ ifeq ($(CONFIG_BUILTIN),y)
|
|||||||
# Builtin library files
|
# Builtin library files
|
||||||
|
|
||||||
CSRCS += lib_builtin_getname.c lib_builtin_isavail.c lib_builtin_forindex.c
|
CSRCS += lib_builtin_getname.c lib_builtin_isavail.c lib_builtin_forindex.c
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_BUILD_PROTECTED),y)
|
||||||
CSRCS += lib_builtin_setlist.c
|
CSRCS += lib_builtin_setlist.c
|
||||||
|
endif
|
||||||
|
|
||||||
# Hook the builtin subdirectory into the build
|
# Hook the builtin subdirectory into the build
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
FAR const struct builtin_s *builtin_for_index(int index)
|
FAR struct builtin_s const *builtin_for_index(int index)
|
||||||
{
|
{
|
||||||
if (index < g_builtin_count)
|
if (index < g_builtin_count)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -89,8 +89,8 @@ int g_builtin_count;
|
|||||||
|
|
||||||
void builtin_setlist(FAR struct builtin_s * const *builtins, int count)
|
void builtin_setlist(FAR struct builtin_s * const *builtins, int count)
|
||||||
{
|
{
|
||||||
g_builtins = builtins;
|
g_builtins = builtins;
|
||||||
g_builtin_count = builtins;
|
g_builtin_count = count;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_BUILD_PROTECTED && CONFIG_FS_BINFS && __KERNEL__ */
|
#endif /* CONFIG_BUILD_PROTECTED && CONFIG_FS_BINFS && __KERNEL__ */
|
||||||
|
|||||||
Reference in New Issue
Block a user