diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-12-22 17:40:45 +0300 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-01-09 20:03:58 +0300 |
commit | 82359aec45506263042ffcecc2732cdf47def329 (patch) | |
tree | 1509c912eea2c959f9d390e754cab60f7de1f7c1 /common | |
parent | d6efe244e485d119ff4d3505d9c6fc0ddc9b4fb5 (diff) | |
download | u-boot-82359aec45506263042ffcecc2732cdf47def329.tar.xz |
cmd editing: mark erase/tab seqs constant
These strings are only read, so no need to have them be writable.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/main.c b/common/main.c index 42f4d025dc..dcbacc9afc 100644 --- a/common/main.c +++ b/common/main.c @@ -65,8 +65,8 @@ static int abortboot(int); char console_buffer[CONFIG_SYS_CBSIZE + 1]; /* console I/O buffer */ static char * delete_char (char *buffer, char *p, int *colp, int *np, int plen); -static char erase_seq[] = "\b \b"; /* erase sequence */ -static char tab_seq[] = " "; /* used to expand TABs */ +static const char erase_seq[] = "\b \b"; /* erase sequence */ +static const char tab_seq[] = " "; /* used to expand TABs */ #ifdef CONFIG_BOOT_RETRY_TIME static uint64_t endtime = 0; /* must be set, default is instant timeout */ |