diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-09 19:10:49 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-09 19:10:49 +0100 |
commit | dc698bb038756a926aaa529bda1b939eab2c1676 (patch) | |
tree | 4084a40897d9d81816228935a1398e80dd4b173b /miscutils/crond.c | |
parent | 0681137972dc89b5003b0415e09184c0ecf1c875 (diff) | |
download | busybox-w32-dc698bb038756a926aaa529bda1b939eab2c1676.tar.gz busybox-w32-dc698bb038756a926aaa529bda1b939eab2c1676.tar.bz2 busybox-w32-dc698bb038756a926aaa529bda1b939eab2c1676.zip |
*: make it easier to distinquish "struct tm", pointer to one, etc
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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", |