From 1d16b3d5dc91b4a1dbcd24a4fc73c9e35ec8983d Mon Sep 17 00:00:00 2001 From: JulianHolzwarth Date: Wed, 11 Sep 2019 17:32:40 +0200 Subject: [PATCH] core/thread.c: thread_create fix priority type Bugfix: changing type of priority to uint8_t to be consistent with struct _thread --- core/include/thread.h | 2 +- core/thread.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/include/thread.h b/core/include/thread.h index b2a2ce2e5c..eff7c1805f 100644 --- a/core/include/thread.h +++ b/core/include/thread.h @@ -341,7 +341,7 @@ struct _thread { */ kernel_pid_t thread_create(char *stack, int stacksize, - char priority, + uint8_t priority, int flags, thread_task_func_t task_func, void *arg, diff --git a/core/thread.c b/core/thread.c index 254a5293bf..6a91943caf 100644 --- a/core/thread.c +++ b/core/thread.c @@ -143,7 +143,7 @@ uintptr_t thread_measure_stack_free(char *stack) } #endif -kernel_pid_t thread_create(char *stack, int stacksize, char priority, int flags, thread_task_func_t function, void *arg, const char *name) +kernel_pid_t thread_create(char *stack, int stacksize, uint8_t priority, int flags, thread_task_func_t function, void *arg, const char *name) { if (priority >= SCHED_PRIO_LEVELS) { return -EINVAL;