diff --git a/src/kernel/core/port.c b/src/kernel/core/port.c index 6ccc9e9d66..ccede9cef2 100644 --- a/src/kernel/core/port.c +++ b/src/kernel/core/port.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include diff --git a/src/kernel/core/team.c b/src/kernel/core/team.c index 3999779e43..fce3b37874 100644 --- a/src/kernel/core/team.c +++ b/src/kernel/core/team.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include @@ -247,7 +246,7 @@ wait_for_team(team_id id, status_t *_returnCode) if (team && team->main_thread) thread = team->main_thread->id; else - thread = ERR_INVALID_HANDLE; + thread = B_BAD_THREAD_ID; RELEASE_TEAM_LOCK(); restore_interrupts(state); @@ -616,7 +615,7 @@ team_kill_team(team_id id) if (team != NULL) tid = team->main_thread->id; else - retval = ERR_INVALID_HANDLE; + retval = B_BAD_THREAD_ID; RELEASE_TEAM_LOCK(); restore_interrupts(state);