cppcheck reduce scope of var in dmake/win95/runargv.c

This commit is contained in:
Pierre-André Jacquod 2011-10-03 13:07:47 +02:00
parent 070957a677
commit e9969a918f

View File

@ -128,14 +128,13 @@ int pid;
PUBLIC void
Clean_up_processes()
{
register int i;
if( _procs != NIL(PR) ) {
for( i=0; i<Max_proc; i++ )
if( _procs[i].pr_valid )
kill(_procs[i].pr_pid, SIGTERM);
while( Wait_for_child(TRUE, -1) != -1 );
if( _procs != NIL(PR) )
{
register int i;
for( i=0; i<Max_proc; i++ )
if( _procs[i].pr_valid )
kill(_procs[i].pr_pid, SIGTERM);
while( Wait_for_child(TRUE, -1) != -1 );
}
}