diff options
| author | Peter Tyser <ptyser@xes-inc.com> | 2010-09-29 13:30:56 -0500 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2010-10-06 23:02:37 +0200 | 
| commit | 8804ae3b7a91b91e0c948b7bc1f0cf12118dd6e4 (patch) | |
| tree | 991ed04171149fed4eb98c3b89cc45187b4ac679 /common/main.c | |
| parent | 7d85f1dc5cf1269ecb41de983c29386e6cddf910 (diff) | |
| download | olio-uboot-2014.01-8804ae3b7a91b91e0c948b7bc1f0cf12118dd6e4.tar.xz olio-uboot-2014.01-8804ae3b7a91b91e0c948b7bc1f0cf12118dd6e4.zip | |
Replace MAX_CMDBUF_SIZE references with CONFIG_SYS_CBSIZE
The MAX_CMDBUF_SIZE define is unneeded as it should always
equal CONFIG_SYS_CBSIZE.
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Diffstat (limited to 'common/main.c')
| -rw-r--r-- | common/main.c | 7 | 
1 files changed, 2 insertions, 5 deletions
| diff --git a/common/main.c b/common/main.c index 8d548dbc8..d97ccd7dd 100644 --- a/common/main.c +++ b/common/main.c @@ -518,9 +518,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) @@ -531,7 +528,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; @@ -947,7 +944,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; |