diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-06-21 17:01:49 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-06-21 17:01:49 +0000 |
commit | 66c11ef077dee8cc367de7e539d5c6e03be78826 (patch) | |
tree | 79a7c68ec041f1efadad8c91aa5e2a14542d437c | |
parent | 4be3bdb5b2fa51fdba0a57f979e98e09277d3ba1 (diff) | |
download | px4-nuttx-66c11ef077dee8cc367de7e539d5c6e03be78826.tar.gz px4-nuttx-66c11ef077dee8cc367de7e539d5c6e03be78826.tar.bz2 px4-nuttx-66c11ef077dee8cc367de7e539d5c6e03be78826.zip |
RGMP NSH configuration fixes; Move strerror strings to FLASH
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4859 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r-- | nuttx/configs/rgmp/arm/nsh/appconfig | 1 | ||||
-rw-r--r-- | nuttx/configs/rgmp/x86/nsh/appconfig | 1 | ||||
-rw-r--r-- | nuttx/lib/string/lib_strerror.c | 4 |
3 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/configs/rgmp/arm/nsh/appconfig b/nuttx/configs/rgmp/arm/nsh/appconfig index 092554129..e5220a258 100644 --- a/nuttx/configs/rgmp/arm/nsh/appconfig +++ b/nuttx/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/nuttx/configs/rgmp/x86/nsh/appconfig b/nuttx/configs/rgmp/x86/nsh/appconfig index 092554129..e5220a258 100644 --- a/nuttx/configs/rgmp/x86/nsh/appconfig +++ b/nuttx/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/nuttx/lib/string/lib_strerror.c b/nuttx/lib/string/lib_strerror.c index 61538952d..580974fa6 100644 --- a/nuttx/lib/string/lib_strerror.c +++ b/nuttx/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 }, |