summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2010-09-29 13:30:56 -0500
committerMichael BRANDT <michael.brandt@stericsson.com>2010-10-21 14:26:34 +0200
commit72804305ab834ae203857d8efafab1cfc97fcc61 (patch)
treed003602c2cc3ee3e8814c80d9695509c015f0247 /common
parent421f415d97976de1ec3b2c2d71c1994a01f7b98d (diff)
Replace MAX_CMDBUF_SIZE references with CONFIG_SYS_CBSIZE
The MAX_CMDBUF_SIZE define is unneeded as it should always equal CONFIG_SYS_CBSIZE. Change-Id: I90a9dedb48478d39e3fd112a892f9dca73116b5e Signed-off-by: Peter Tyser <ptyser@xes-inc.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/6819 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Mikael LARSSON <mikael.xt.larsson@stericsson.com>
Diffstat (limited to 'common')
-rw-r--r--common/main.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/common/main.c b/common/main.c
index 9c011e260..fa8a323fe 100644
--- a/common/main.c
+++ b/common/main.c
@@ -528,9 +528,6 @@ void reset_cmd_timeout(void)
} while (0)
#define CTL_CH(c) ((c) - 'a' + 1)
-
-#define MAX_CMDBUF_SIZE CONFIG_SYS_CBSIZE
-
#define CTL_BACKSPACE ('\b')
#define DEL ((char)255)
#define DEL7 ((char)127)
@@ -541,7 +538,7 @@ void reset_cmd_timeout(void)
#define getcmd_cbeep() getcmd_putch('\a')
#define HIST_MAX 20
-#define HIST_SIZE MAX_CMDBUF_SIZE
+#define HIST_SIZE CONFIG_SYS_CBSIZE
static int hist_max = 0;
static int hist_add_idx = 0;
@@ -957,7 +954,7 @@ int readline_into_buffer (const char *const prompt, char * buffer)
{
char *p = buffer;
#ifdef CONFIG_CMDLINE_EDITING
- unsigned int len=MAX_CMDBUF_SIZE;
+ unsigned int len = CONFIG_SYS_CBSIZE;
int rc;
static int initted = 0;