提交 82359aec 编写于 作者: M Mike Frysinger 提交者: Wolfgang Denk

cmd editing: mark erase/tab seqs constant

These strings are only read, so no need to have them be writable.
Signed-off-by: NMike Frysinger <vapier@gentoo.org>
上级 d6efe244
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册