From: Mike Frysinger Date: Wed, 22 Dec 2010 14:40:45 +0000 (-0500) Subject: cmd editing: mark erase/tab seqs constant X-Git-Tag: v2011.03-rc1~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82359aec45506263042ffcecc2732cdf47def329;p=platform%2Fkernel%2Fu-boot.git 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 --- diff --git a/common/main.c b/common/main.c index 42f4d02..dcbacc9 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 */