From 92af23fa88e783ea2785bf555d2b1b8413667f11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 27 Nov 2004 12:57:36 +0000 Subject: [PATCH] Now uses the new Be-style constants for get_team_usage_info(). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10268 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/team.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/kernel/core/team.c b/src/kernel/core/team.c index 032bc95f89..55e748d1df 100644 --- a/src/kernel/core/team.c +++ b/src/kernel/core/team.c @@ -22,7 +22,6 @@ #include #include -#include #include #include #include @@ -1661,7 +1660,7 @@ _get_team_usage_info(team_id id, int32 who, team_usage_info *info, size_t size) cpu_status state; if (size != sizeof(team_usage_info) - || (who != RUSAGE_SELF && who != RUSAGE_CHILDREN)) + || (who != B_TEAM_USAGE_SELF && who != B_TEAM_USAGE_CHILDREN)) return B_BAD_VALUE; state = disable_interrupts(); @@ -1678,7 +1677,7 @@ _get_team_usage_info(team_id id, int32 who, team_usage_info *info, size_t size) } switch (who) { - case RUSAGE_SELF: + case B_TEAM_USAGE_SELF: { struct thread *thread = team->thread_list; @@ -1692,7 +1691,7 @@ _get_team_usage_info(team_id id, int32 who, team_usage_info *info, size_t size) break; } - case RUSAGE_CHILDREN: + case B_TEAM_USAGE_CHILDREN: { struct team *child = team->children; for (; child != NULL; child = child->siblings_next) {