diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-02-01 19:47:12 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-02-01 19:47:12 +0000 |
commit | 37259910ba73b71e4c32e5913e4d44c245c4502d (patch) | |
tree | 9b5b0a7b3d6180141c3f9d959b6c04647e4a6810 /apps/nshlib | |
parent | 6d35541209058b86bda7b34e47fa28c8c959d365 (diff) | |
download | nuttx-37259910ba73b71e4c32e5913e4d44c245c4502d.tar.gz nuttx-37259910ba73b71e4c32e5913e4d44c245c4502d.tar.bz2 nuttx-37259910ba73b71e4c32e5913e4d44c245c4502d.zip |
Use realine instead of fgets in several other places
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4357 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/nshlib')
-rw-r--r-- | apps/nshlib/README.txt | 8 | ||||
-rw-r--r-- | apps/nshlib/nsh_serial.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/apps/nshlib/README.txt b/apps/nshlib/README.txt index fad1ac104..fbdf9178a 100644 --- a/apps/nshlib/README.txt +++ b/apps/nshlib/README.txt @@ -1047,3 +1047,11 @@ Common Problems Make sure that the polled console is disabled in the OS configuration file, .config. That file should have CONFIG_DEV_LOWCONSOLE=n for NSH over serial. + + Problem: + The function 'readline' is undefined. + Usual Cause: + The following is missing from your appconfig file: + + CONFIGURED_APPS += system/readline + diff --git a/apps/nshlib/nsh_serial.c b/apps/nshlib/nsh_serial.c index 72004dd7f..57cb1b1c1 100644 --- a/apps/nshlib/nsh_serial.c +++ b/apps/nshlib/nsh_serial.c @@ -525,7 +525,7 @@ int nsh_consolemain(int argc, char *argv[]) else { - fprintf(pstate->ss_outstream, g_fmtcmdfailed, "readline", NSH_ERRNO); + fprintf(pstate->ss_outstream, g_fmtcmdfailed, "readline", NSH_ERRNO_OF(-ret)); return 1; } } |