mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-04 04:38:15 +00:00
Remove the unnecessary cast from pid_t to int
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
3d598fce6c
commit
e89409cfe6
2 changed files with 4 additions and 4 deletions
|
|
@ -120,7 +120,7 @@ static void waitpid_last(void)
|
|||
printf("waitpid_last: Waiting for PID=%d with waitpid()\n",
|
||||
g_waitpids[NCHILDREN - 1]);
|
||||
|
||||
ret = (int)waitpid(g_waitpids[NCHILDREN - 1], &stat_loc, 0);
|
||||
ret = waitpid(g_waitpids[NCHILDREN - 1], &stat_loc, 0);
|
||||
if (ret < 0)
|
||||
{
|
||||
int errcode = errno;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue