Fix a couple of warnings in last commit (one was really an error).

This commit is contained in:
Gregory Nutt
2019-08-25 17:37:13 -06:00
parent f751aff7fe
commit 19b94da468
4 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -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)
+3
View File
@@ -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
+1 -1
View File
@@ -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)
{ {
+2 -2
View File
@@ -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__ */