sched/group: Fix the typo error

build will fail with debug assert

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2020-08-11 15:06:46 +08:00 committed by Abdelatif Guettouche
parent 7879fba9f4
commit 00c662bbd7
4 changed files with 6 additions and 5 deletions

View File

@ -69,6 +69,6 @@ gid_t getgid(void)
/* Set the task group's group identity. */
DEBUGASSERT(group != NULL);
DEBUGASSERT(rgroup != NULL);
return rgroup->tg_gid;
}

View File

@ -52,7 +52,8 @@
* Name: getuid
*
* Description:
* The getuid() function will return the real user ID of the calling process.
* The getuid() function will return the real user ID of the calling
* process.
*
* Input Parameters:
* None
@ -69,6 +70,6 @@ uid_t getuid(void)
/* Set the task group's group identity. */
DEBUGASSERT(group != NULL);
DEBUGASSERT(rgroup != NULL);
return rgroup->tg_uid;
}

View File

@ -93,7 +93,7 @@ int setgid(gid_t gid)
/* Set the task group's group identity. */
DEBUGASSERT(group != NULL);
DEBUGASSERT(rgroup != NULL);
rgroup->tg_gid = gid;
return OK;
}

View File

@ -94,7 +94,7 @@ int setuid(uid_t uid)
/* Set the task group's group identity. */
DEBUGASSERT(group != NULL);
DEBUGASSERT(rgroup != NULL);
rgroup->tg_uid = uid;
return OK;
}