scron

simple cron daemon
git clone git://git.2f30.org/scron.git
Log | Files | Refs | README | LICENSE

commit 34102fff92abcecd85a63d51328887ddfd99038c
parent 7d8ab0e141ca770c25a5975271d581a40db35da8
Author: sin <sin@2f30.org>
Date:   Wed Jul  2 14:02:09 +0100

Simplify parsing loop

Diffstat:
crond.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/crond.c b/crond.c @@ -170,10 +170,9 @@ main(int argc, char *argv[]) for (x = 0, col = strtok(line, "\t"); col; x++, col = strtok(NULL, "\t")) { if (!parsecolumn(col, y, x)) continue; - else if (x == 5) + if (x == 5) runjob(col); - else - break; + break; } }