helper: constify log_strings

Change-Id: I5bdd8958e79b754d56bb7aee2892856e557eed76
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/2296
Tested-by: jenkins
This commit is contained in:
Spencer Oliver 2014-09-11 22:14:58 +01:00
parent 3160c66408
commit 48a681c741
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ char *buf_to_str(const void *_buf, unsigned buf_len, unsigned radix)
}
}
const char *DIGITS = "0123456789ABCDEF";
const char * const DIGITS = "0123456789ABCDEF";
for (unsigned j = 0; j < str_len; j++)
str[j] = DIGITS[(int)str[j]];

View File

@ -52,7 +52,7 @@ static long long current_time;
static long long start;
static char *log_strings[5] = {
static const char * const log_strings[5] = {
"User : ",
"Error: ",
"Warn : ", /* want a space after each colon, all same width, colons aligned */