From: Mike Frysinger Date: Wed, 22 Dec 2010 09:40:45 -0500 Subject: [U-Boot] [PATCH] cmd editing: mark erase/tab seqs constant Message-ID: <1293028845-16111-1-git-send-email-vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de These strings are only read, so no need to have them be writable. Signed-off-by: Mike Frysinger --- common/main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/main.c b/common/main.c index d97ccd7..fa7c49d 100644 --- a/common/main.c +++ b/common/main.c @@ -71,8 +71,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 */ -- 1.7.3.4