diff options
author | "Vladimir N. Oleynik" | 2006-01-30 13:36:03 +0000 |
---|---|---|
committer | "Vladimir N. Oleynik" | 2006-01-30 13:36:03 +0000 |
commit | cd5c15d28770d843da6a390af18ce8aacc465c2f (patch) | |
tree | b7640ee3e27da41b64ec2469a41f7f1264b266b1 /miscutils | |
parent | 9b9a920eef1bcbab2c4daa239b53de7e9ca83144 (diff) | |
download | busybox-cd5c15d28770d843da6a390af18ce8aacc465c2f.zip busybox-cd5c15d28770d843da6a390af18ce8aacc465c2f.tar.gz |
removed warning "comparison between signed and unsigned". Change very very old code: use int instead short
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/crond.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index eea34b9..7e50b61 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c @@ -235,7 +235,7 @@ int crond_main(int ac, char **av) time_t t1 = time(NULL); time_t t2; long dt; - short rescan = 60; + int rescan = 60; short sleep_time = 60; for (;;) { @@ -532,17 +532,17 @@ static char *ParseField(char *user, char *ary, int modvalue, int off, static void FixDayDow(CronLine * line) { - short i; - short weekUsed = 0; - short daysUsed = 0; + int i; + int weekUsed = 0; + int daysUsed = 0; - for (i = 0; i < arysize(line->cl_Dow); ++i) { + for (i = 0; i < (int)(arysize(line->cl_Dow)); ++i) { if (line->cl_Dow[i] == 0) { weekUsed = 1; break; } } - for (i = 0; i < arysize(line->cl_Days); ++i) { + for (i = 0; i < (int)(arysize(line->cl_Days)); ++i) { if (line->cl_Days[i] == 0) { daysUsed = 1; break; @@ -769,7 +769,7 @@ static void DeleteFile(const char *userName) static int TestJobs(time_t t1, time_t t2) { - short nJobs = 0; + int nJobs = 0; time_t t; /* Find jobs > t1 and <= t2 */ |