diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-03 02:56:00 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-03 02:56:00 +0000 |
commit | cd4370bd6ed20fd2c944f03206d3cd56023f390f (patch) | |
tree | 66b3617e0b6ceed9c3123000104df0d78bf9bf2a /miscutils | |
parent | b0c043bbed7ee35df4171d8551695c74458c8d97 (diff) | |
download | busybox-w32-cd4370bd6ed20fd2c944f03206d3cd56023f390f.tar.gz busybox-w32-cd4370bd6ed20fd2c944f03206d3cd56023f390f.tar.bz2 busybox-w32-cd4370bd6ed20fd2c944f03206d3cd56023f390f.zip |
convert calloc to xzalloc
fix sleep-on-die option
git-svn-id: svn://busybox.net/trunk/busybox@17140 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/crond.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index fa7964e4e..aace3ee18 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
@@ -542,7 +542,7 @@ static void SynchronizeFile(const char *fileName) | |||
542 | struct stat sbuf; | 542 | struct stat sbuf; |
543 | 543 | ||
544 | if (fstat(fileno(fi), &sbuf) == 0 && sbuf.st_uid == DaemonUid) { | 544 | if (fstat(fileno(fi), &sbuf) == 0 && sbuf.st_uid == DaemonUid) { |
545 | CronFile *file = calloc(1, sizeof(CronFile)); | 545 | CronFile *file = xzalloc(sizeof(CronFile)); |
546 | CronLine **pline; | 546 | CronLine **pline; |
547 | 547 | ||
548 | file->cf_User = strdup(fileName); | 548 | file->cf_User = strdup(fileName); |
@@ -586,7 +586,7 @@ static void SynchronizeFile(const char *fileName) | |||
586 | 586 | ||
587 | FixDayDow(&line); | 587 | FixDayDow(&line); |
588 | 588 | ||
589 | *pline = calloc(1, sizeof(CronLine)); | 589 | *pline = xzalloc(sizeof(CronLine)); |
590 | **pline = line; | 590 | **pline = line; |
591 | 591 | ||
592 | /* copy command */ | 592 | /* copy command */ |