From 8906bb76fddacebacd347d4ef7d0907dc4c39718 Mon Sep 17 00:00:00 2001 From: Thibault Godouet Date: Sat, 21 Apr 2001 08:50:46 +0000 Subject: [PATCH] use break instead of goto in wait_chld and wait_all --- database.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/database.c b/database.c index 0f5d761..09b0c18 100644 --- a/database.c +++ b/database.c @@ -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: } } -- 2.47.3