diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2014-09-11 22:07:10 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2014-10-06 11:57:29 +0000 |
commit | 03410e92dae6efbb2dc474fb7556117cc60c3f82 (patch) | |
tree | 04a55ac0bd302e71f229f568a4301b8bae47d392 /src/rtos/linux.c | |
parent | 40815bd39a7ee9f93a95a89e978fdace081c3563 (diff) | |
download | riscv-openocd-03410e92dae6efbb2dc474fb7556117cc60c3f82.zip riscv-openocd-03410e92dae6efbb2dc474fb7556117cc60c3f82.tar.gz riscv-openocd-03410e92dae6efbb2dc474fb7556117cc60c3f82.tar.bz2 |
rtos: constify symbol names and lists
Change-Id: I72f3cd50fc6a33a178e72e169c9660e707751524
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/2292
Tested-by: jenkins
Diffstat (limited to 'src/rtos/linux.c')
-rw-r--r-- | src/rtos/linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rtos/linux.c b/src/rtos/linux.c index f2a48a2..9021d8c 100644 --- a/src/rtos/linux.c +++ b/src/rtos/linux.c @@ -40,7 +40,7 @@ #define MAX_THREADS 200 /* specific task */ struct linux_os { - char *name; + const char *name; uint32_t init_task_addr; int thread_count; int threadid_count; @@ -320,7 +320,7 @@ static int linux_os_detect(struct target *target) static int linux_os_smp_init(struct target *target); static int linux_os_clean(struct target *target); #define INIT_TASK 0 -static char *linux_symbol_list[] = { +static const char * const linux_symbol_list[] = { "init_task", NULL }; |