aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-12-22 09:40:45 -0500
committerWolfgang Denk <wd@denx.de>2011-01-09 18:03:58 +0100
commit82359aec45506263042ffcecc2732cdf47def329 (patch)
tree1509c912eea2c959f9d390e754cab60f7de1f7c1
parentd6efe244e485d119ff4d3505d9c6fc0ddc9b4fb5 (diff)
downloadu-boot-midas-82359aec45506263042ffcecc2732cdf47def329.tar.gz
u-boot-midas-82359aec45506263042ffcecc2732cdf47def329.tar.bz2
u-boot-midas-82359aec45506263042ffcecc2732cdf47def329.zip
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>
-rw-r--r--common/main.c4
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 */