From: Thibault Godouet Date: Sat, 21 Apr 2001 08:50:46 +0000 (+0000) Subject: use break instead of goto in wait_chld and wait_all X-Git-Tag: ver2_9_4~375 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8906bb76fddacebacd347d4ef7d0907dc4c39718;p=thirdparty%2Ffcron.git use break instead of goto in wait_chld and wait_all --- 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: } }