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

Merge pull request #12203 from JulianHolzwarth/pr/core/thread/hotfix_prio_type

core/thread.c: thread_create fix priority type
This commit is contained in:
Martine Lenders 2019-09-12 12:41:13 +02:00 committed by GitHub
commit 1887e9d3f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;