diff --git a/thread/thread.c b/thread/thread.c index c4baecf..e059edf 100644 --- a/thread/thread.c +++ b/thread/thread.c @@ -268,8 +268,8 @@ static void _catch_signals(void) } -thread_type *thread_create_c(char *name, void *(*start_routine)(void *), - void *arg, int detached, int line, char *file) +thread_type *thread_create_c(const char *name, void *(*start_routine)(void *), + void *arg, int detached, int line, const char *file) { thread_type *thread = NULL; thread_start_t *start = NULL; diff --git a/thread/thread.h b/thread/thread.h index d2c3be3..e9b1e9b 100644 --- a/thread/thread.h +++ b/thread/thread.h @@ -168,8 +168,8 @@ void thread_initialize_with_log_id(int log_id); void thread_shutdown(void); /* creation, destruction, locking, unlocking, signalling and waiting */ -thread_type *thread_create_c(char *name, void *(*start_routine)(void *), - void *arg, int detached, int line, char *file); +thread_type *thread_create_c(const char *name, void *(*start_routine)(void *), + void *arg, int detached, int line, const char *file); void thread_mutex_create_c(mutex_t *mutex, int line, char *file); void thread_mutex_lock_c(mutex_t *mutex, int line, char *file); void thread_mutex_unlock_c(mutex_t *mutex, int line, char *file);