cppcheck reduce scope of var in dmake/win95/runargv.c
This commit is contained in:
@@ -128,14 +128,13 @@ int pid;
|
|||||||
PUBLIC void
|
PUBLIC void
|
||||||
Clean_up_processes()
|
Clean_up_processes()
|
||||||
{
|
{
|
||||||
register int i;
|
if( _procs != NIL(PR) )
|
||||||
|
{
|
||||||
if( _procs != NIL(PR) ) {
|
register int i;
|
||||||
for( i=0; i<Max_proc; i++ )
|
for( i=0; i<Max_proc; i++ )
|
||||||
if( _procs[i].pr_valid )
|
if( _procs[i].pr_valid )
|
||||||
kill(_procs[i].pr_pid, SIGTERM);
|
kill(_procs[i].pr_pid, SIGTERM);
|
||||||
|
while( Wait_for_child(TRUE, -1) != -1 );
|
||||||
while( Wait_for_child(TRUE, -1) != -1 );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user