summaryrefslogtreecommitdiffstats
path: root/common/command.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:01:43 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:01:43 +0200
commit05be7fb930419e508cb75691c9de0c97c01a33ea (patch)
tree3278ffc72ebecabe160fa85c2fbbf5ecd0c742b8 /common/command.c
parent8d38bd967e6b740133f824f4462dbb411508dc12 (diff)
downloadbarebox-05be7fb930419e508cb75691c9de0c97c01a33ea.tar.gz
barebox-05be7fb930419e508cb75691c9de0c97c01a33ea.tar.xz
svn_rev_316
make help command removable
Diffstat (limited to 'common/command.c')
-rw-r--r--common/command.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/command.c b/common/command.c
index 2eaa72dcd4..f8cdbaa5c2 100644
--- a/common/command.c
+++ b/common/command.c
@@ -220,6 +220,7 @@ U_BOOT_CMD(
#endif
+#ifdef CONFIG_CMD_HELP
/*
* Use puts() instead of printf() to avoid printf buffer overflow
* for long help messages
@@ -329,6 +330,8 @@ cmd_tbl_t __u_boot_cmd_question_mark Struct_Section = {
};
#endif /* CONFIG_LONGHELP */
+#endif /* CONFIG_CMD_HELP */
+
/***************************************************************************
* find command table entry for a command
*/
@@ -568,7 +571,7 @@ int cmd_auto_complete(const char *const prompt, char *buf, int *np, int *colp)
int cnt;
char last_char;
- if (strcmp(prompt, CFG_PROMPT) != 0)
+ if (strcmp(prompt, CONFIG_PROMPT) != 0)
return 0; /* not in normal console */
cnt = strlen(buf);