]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
cmd editing: mark erase/tab seqs constant
authorMike Frysinger <vapier@gentoo.org>
Wed, 22 Dec 2010 14:40:45 +0000 (09:40 -0500)
committerWolfgang Denk <wd@denx.de>
Sun, 9 Jan 2011 17:03:58 +0000 (18:03 +0100)
These strings are only read, so no need to have them be writable.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
common/main.c

index 42f4d025dcb3abd5f1bd6c9aecd2ff8cdb7a1bfc..dcbacc9afc019aaddeb2e243367a3fea1f437fab 100644 (file)
@@ -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 */