1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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,
int stacksize,
char priority,
uint8_t priority,
int flags,
thread_task_func_t task_func,
void *arg,

View File

@ -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;