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:
parent
7879fba9f4
commit
00c662bbd7
|
@ -69,6 +69,6 @@ gid_t getgid(void)
|
||||||
|
|
||||||
/* Set the task group's group identity. */
|
/* Set the task group's group identity. */
|
||||||
|
|
||||||
DEBUGASSERT(group != NULL);
|
DEBUGASSERT(rgroup != NULL);
|
||||||
return rgroup->tg_gid;
|
return rgroup->tg_gid;
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,8 @@
|
||||||
* Name: getuid
|
* Name: getuid
|
||||||
*
|
*
|
||||||
* Description:
|
* 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:
|
* Input Parameters:
|
||||||
* None
|
* None
|
||||||
|
@ -69,6 +70,6 @@ uid_t getuid(void)
|
||||||
|
|
||||||
/* Set the task group's group identity. */
|
/* Set the task group's group identity. */
|
||||||
|
|
||||||
DEBUGASSERT(group != NULL);
|
DEBUGASSERT(rgroup != NULL);
|
||||||
return rgroup->tg_uid;
|
return rgroup->tg_uid;
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,7 +93,7 @@ int setgid(gid_t gid)
|
||||||
|
|
||||||
/* Set the task group's group identity. */
|
/* Set the task group's group identity. */
|
||||||
|
|
||||||
DEBUGASSERT(group != NULL);
|
DEBUGASSERT(rgroup != NULL);
|
||||||
rgroup->tg_gid = gid;
|
rgroup->tg_gid = gid;
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,7 +94,7 @@ int setuid(uid_t uid)
|
||||||
|
|
||||||
/* Set the task group's group identity. */
|
/* Set the task group's group identity. */
|
||||||
|
|
||||||
DEBUGASSERT(group != NULL);
|
DEBUGASSERT(rgroup != NULL);
|
||||||
rgroup->tg_uid = uid;
|
rgroup->tg_uid = uid;
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue