diff options
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r-- | miscutils/crond.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index ad217f007..7135e4475 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
@@ -654,14 +654,14 @@ static int TestJobs(time_t t1, time_t t2) | |||
654 | /* Find jobs > t1 and <= t2 */ | 654 | /* Find jobs > t1 and <= t2 */ |
655 | 655 | ||
656 | for (t = t1 - t1 % 60; t <= t2; t += 60) { | 656 | for (t = t1 - t1 % 60; t <= t2; t += 60) { |
657 | struct tm *tp; | 657 | struct tm *ptm; |
658 | CronFile *file; | 658 | CronFile *file; |
659 | CronLine *line; | 659 | CronLine *line; |
660 | 660 | ||
661 | if (t <= t1) | 661 | if (t <= t1) |
662 | continue; | 662 | continue; |
663 | 663 | ||
664 | tp = localtime(&t); | 664 | ptm = localtime(&t); |
665 | for (file = FileBase; file; file = file->cf_Next) { | 665 | for (file = FileBase; file; file = file->cf_Next) { |
666 | if (DebugOpt) | 666 | if (DebugOpt) |
667 | crondlog(LVL5 "file %s:", file->cf_User); | 667 | crondlog(LVL5 "file %s:", file->cf_User); |
@@ -670,9 +670,9 @@ static int TestJobs(time_t t1, time_t t2) | |||
670 | for (line = file->cf_LineBase; line; line = line->cl_Next) { | 670 | for (line = file->cf_LineBase; line; line = line->cl_Next) { |
671 | if (DebugOpt) | 671 | if (DebugOpt) |
672 | crondlog(LVL5 " line %s", line->cl_Shell); | 672 | crondlog(LVL5 " line %s", line->cl_Shell); |
673 | if (line->cl_Mins[tp->tm_min] && line->cl_Hrs[tp->tm_hour] | 673 | if (line->cl_Mins[ptm->tm_min] && line->cl_Hrs[ptm->tm_hour] |
674 | && (line->cl_Days[tp->tm_mday] || line->cl_Dow[tp->tm_wday]) | 674 | && (line->cl_Days[ptm->tm_mday] || line->cl_Dow[ptm->tm_wday]) |
675 | && line->cl_Mons[tp->tm_mon] | 675 | && line->cl_Mons[ptm->tm_mon] |
676 | ) { | 676 | ) { |
677 | if (DebugOpt) { | 677 | if (DebugOpt) { |
678 | crondlog(LVL5 " job: %d %s", | 678 | crondlog(LVL5 " job: %d %s", |