]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
use break instead of goto in wait_chld and wait_all
authorThibault Godouet <yo8192@users.noreply.github.com>
Sat, 21 Apr 2001 08:50:46 +0000 (08:50 +0000)
committerThibault Godouet <yo8192@users.noreply.github.com>
Sat, 21 Apr 2001 08:50:46 +0000 (08:50 +0000)
database.c

index 0f5d7612246c377eab1121766babc89b36ceb485..09b0c1827965a9202841801968e71219d0a06c0c 100644 (file)
@@ -22,7 +22,7 @@
  *  `LICENSE' that comes with the fcron source distribution.
  */
 
- /* $Id: database.c,v 1.49 2001-02-27 20:50:22 thib Exp $ */
+ /* $Id: database.c,v 1.50 2001-04-21 08:50:46 thib Exp $ */
 
 #include "fcron.h"
 
@@ -407,13 +407,10 @@ wait_chld(void)
                else
                    exe_array[i].e_line = NULL;
                
-               goto nextloop;
+               break;
            }
            i++;
        }
-       /* execution shouldn't come here */
-       debug("not in exe_array !");
-      nextloop:
     }
 
 }
@@ -453,13 +450,10 @@ wait_all(int *counter)
                else
                    exe_array[i].e_line = NULL;
                
-               goto nextloop;
+               break;
            }
            i++;
        }
-       /* execution shouldn't come here */
-       debug("not in exe_array !");
-      nextloop:
     }    
     
 }