Kaydet (Commit) e9969a91 authored tarafından Pierre-André Jacquod's avatar Pierre-André Jacquod

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

üst 070957a6
...@@ -128,14 +128,13 @@ int pid; ...@@ -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 );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment