Fix a few mistakes I made on the last commit

This commit is contained in:
Gregory Nutt 2015-07-28 07:30:05 -06:00
parent 766886310d
commit f1b4b4d47a
4 changed files with 7 additions and 4 deletions

View File

@ -1365,4 +1365,6 @@
do start at the same time (2015-07-24).
* apps/examples/ostest: Add a test for the sporadic scheduler. This
test is failing as of this commit (2015-07-24).
* apps/system/readline: Add support for Unix-style tab complete toi
readline. This currently works only for built-in functions.i
Contributed by Nghia (2015-07-28).

View File

@ -87,7 +87,7 @@ extern "C"
**************************************************************************/
#ifdef CONFIG_READLINE_TABCOMPLETION
void readline_prompt(FAR const *prompt);
void readline_prompt(FAR const char *prompt);
#else
# define readline_prompt(p)
#endif

View File

@ -40,6 +40,7 @@
#include <nuttx/config.h>
#include <sys/boardctl.h>
#include <apps/readline.h>
#include <apps/nsh.h>
#include "nsh.h"

View File

@ -63,7 +63,7 @@ static const char g_erasetoeol[] = VT100_CLEAREOL;
#ifdef CONFIG_READLINE_TABCOMPLETION
/* Prompt string to present at the beginning of the line */
static const *char g_readline_prompt = NULL;
static FAR const char *g_readline_prompt = NULL;
#endif
/****************************************************************************
@ -199,7 +199,7 @@ void tab_completion(FAR struct rl_common_s *vtbl, char *buf, int *nch)
**************************************************************************/
#ifdef CONFIG_READLINE_TABCOMPLETION
void readline_prompt(FAR const *prompt)
void readline_prompt(FAR const char *prompt)
{
g_readline_prompt = prompt;
}