mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
system/nxinit: fix uninitialized 'wstatus' warning
reap_process() referenced an undeclared identifier 'wtatus' on the WIFSIGNALED branch (typo of 'wstatus'). Some toolchains then flagged a -Wmaybe-uninitialized on the surrounding wstatus use. Correct the typo so WIFSIGNALED/WTERMSIG operate on the actual wstatus value returned by waitpid(). Signed-off-by: fangpeina <fangpeina@xiaomi.com>
This commit is contained in:
parent
6fe0d930d1
commit
e661bbab56
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ static void reap_process(FAR struct service_manager_s *sm,
|
|||
status = "status";
|
||||
ret = WEXITSTATUS(wstatus);
|
||||
}
|
||||
else if (WIFSIGNALED(wtatus))
|
||||
else if (WIFSIGNALED(wstatus))
|
||||
{
|
||||
status = "signal";
|
||||
ret = WTERMSIG(wstatus);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue