core/thread.c: thread_create fix priority type

Bugfix: changing type of priority to uint8_t to be consistent with struct _thread
This commit is contained in:
JulianHolzwarth 2019-09-11 17:32:40 +02:00
parent d6356bdc08
commit 1d16b3d5dc
2 changed files with 2 additions and 2 deletions

View File

@ -341,7 +341,7 @@ struct _thread {
*/ */
kernel_pid_t thread_create(char *stack, kernel_pid_t thread_create(char *stack,
int stacksize, int stacksize,
char priority, uint8_t priority,
int flags, int flags,
thread_task_func_t task_func, thread_task_func_t task_func,
void *arg, void *arg,

View File

@ -143,7 +143,7 @@ uintptr_t thread_measure_stack_free(char *stack)
} }
#endif #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) { if (priority >= SCHED_PRIO_LEVELS) {
return -EINVAL; return -EINVAL;