scron

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

commit e36ea386aa79b9dfe279605d0d3bea4fd69116e2
parent c9b050110ae469981ed7b93f0dd5ac577f2648e8
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat,  5 Jul 2014 14:03:12 +0000

crond: change int to long

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
Mcrond.c | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/crond.c b/crond.c @@ -22,10 +22,10 @@ struct field { /* [low, high] */ - int low; - int high; + long low; + long high; /* for every `div' units */ - int div; + long div; }; struct ctabentry { @@ -174,9 +174,9 @@ matchentry(struct ctabentry *cte, struct tm *tm) } static int -parsefield(const char *field, int low, int high, struct field *f) +parsefield(const char *field, long low, long high, struct field *f) { - int min, max, div; + long min, max, div; char *e1, *e2; if (strcmp(field, "*") == 0) {