diff --git a/src/kernel/core/thread.c b/src/kernel/core/thread.c index 665dcce0a9..9fc48b6a2a 100644 --- a/src/kernel/core/thread.c +++ b/src/kernel/core/thread.c @@ -1426,7 +1426,7 @@ sys_exit_thread(status_t return_value) thread_id sys_get_current_thread_id() { - return thread_get_current_thread()->id; + return thread_get_current_thread_id(); }