diff options
author | Jens Arnold <amiconn@rockbox.org> | 2004-08-03 05:58:46 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2004-08-03 05:58:46 +0000 |
commit | 2b0694c6944f2ea155291b62a00c11b89cd63914 (patch) | |
tree | 7b69164f0a3d5c19c3a6db67b8f7e42a24266821 /firmware/thread.c | |
parent | 586ec8274dbe487f3c5567d067965b17e5e228cd (diff) |
More const policeing step 3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4982 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/thread.c')
-rw-r--r-- | firmware/thread.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/thread.c b/firmware/thread.c index 294359b762..36cb49337c 100644 --- a/firmware/thread.c +++ b/firmware/thread.c @@ -36,7 +36,7 @@ int num_threads; static volatile int num_sleepers; static int current_thread; static struct regs thread_contexts[MAXTHREADS] __attribute__ ((section(".idata"))); -char *thread_name[MAXTHREADS]; +const char *thread_name[MAXTHREADS]; void *thread_stack[MAXTHREADS]; int thread_stack_size[MAXTHREADS]; static char main_thread_name[] = "main"; @@ -142,7 +142,8 @@ void wake_up_thread(void) * Return ID if context area could be allocated, else -1. *--------------------------------------------------------------------------- */ -int create_thread(void* function, void* stack, int stack_size, char *name) +int create_thread(void* function, void* stack, int stack_size, + const char *name) { unsigned int i; unsigned int stacklen; |