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
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user