commit 34102fff92abcecd85a63d51328887ddfd99038c
parent 7d8ab0e141ca770c25a5975271d581a40db35da8
Author: sin <sin@2f30.org>
Date: Wed, 2 Jul 2014 14:02:09 +0100
Simplify parsing loop
Diffstat:
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;
}
}