diff --git a/configs/rgmp/arm/nsh/appconfig b/configs/rgmp/arm/nsh/appconfig index 092554129e9..e5220a258ee 100644 --- a/configs/rgmp/arm/nsh/appconfig +++ b/configs/rgmp/arm/nsh/appconfig @@ -36,6 +36,7 @@ # Path to example in apps/examples containing the user_start entry point CONFIGURED_APPS += examples/nsh +CONFIGURED_APPS += system/readline # The NSH Library diff --git a/configs/rgmp/x86/nsh/appconfig b/configs/rgmp/x86/nsh/appconfig index 092554129e9..e5220a258ee 100644 --- a/configs/rgmp/x86/nsh/appconfig +++ b/configs/rgmp/x86/nsh/appconfig @@ -36,6 +36,7 @@ # Path to example in apps/examples containing the user_start entry point CONFIGURED_APPS += examples/nsh +CONFIGURED_APPS += system/readline # The NSH Library diff --git a/lib/string/lib_strerror.c b/lib/string/lib_strerror.c index 61538952def..580974fa6c6 100644 --- a/lib/string/lib_strerror.c +++ b/lib/string/lib_strerror.c @@ -63,14 +63,14 @@ struct errno_strmap_s /* This table maps all error numbers to descriptive strings. * The only assumption that the code makes with regard to this - * this table is that it is order by error number. + * this table is that it is ordered by error number. * * The size of this table is quite large. Its size can be * reduced by eliminating some of the more obscure error * strings. */ -struct errno_strmap_s g_errnomap[] = +static const struct errno_strmap_s g_errnomap[] = { { EPERM, EPERM_STR }, { ENOENT, ENOENT_STR },