summaryrefslogtreecommitdiff
path: root/dmake
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-03 13:01:41 +0200
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-07 15:57:53 +0200
commit070957a67757dad71a1f80bea1c763c7aef439e8 (patch)
tree4e4182f49229a736f3094e8d28ef84a491d3f83e /dmake
parent3f7fd933b3feab7924998e11b4a49c1d27c7fa2c (diff)
cppcheck reduce scope of var in dmake/winnt/...vpp40/runargv.c
Diffstat (limited to 'dmake')
-rw-r--r--dmake/winnt/microsft/vpp40/runargv.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/dmake/winnt/microsft/vpp40/runargv.c b/dmake/winnt/microsft/vpp40/runargv.c
index 9042dfc80a47..2ffef707b7a3 100644
--- a/dmake/winnt/microsft/vpp40/runargv.c
+++ b/dmake/winnt/microsft/vpp40/runargv.c
@@ -128,18 +128,16 @@ 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 );
+ }
}
-
static void
_add_child( pid, target, ignore, last )
int pid;