diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-03 13:07:47 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-07 15:57:54 +0200 |
commit | e9969a918f3b171833991f152f58baf7a0237e2f (patch) | |
tree | adb5c758ccf7e95973b27de4486ce6fa34c804e2 /dmake/win95 | |
parent | 070957a67757dad71a1f80bea1c763c7aef439e8 (diff) |
cppcheck reduce scope of var in dmake/win95/runargv.c
Diffstat (limited to 'dmake/win95')
-rw-r--r-- | dmake/win95/microsft/vpp40/runargv.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/dmake/win95/microsft/vpp40/runargv.c b/dmake/win95/microsft/vpp40/runargv.c index fab9258d6d61..c48285913dbf 100644 --- a/dmake/win95/microsft/vpp40/runargv.c +++ b/dmake/win95/microsft/vpp40/runargv.c @@ -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 ); } } |