diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-03 02:56:00 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-03 02:56:00 +0000 |
commit | 9b1381fd2fb7179f731709542507015799f90a51 (patch) | |
tree | 66b3617e0b6ceed9c3123000104df0d78bf9bf2a /miscutils/crond.c | |
parent | bb3d0fab3b46d64e93687bc30b405d0878eca296 (diff) | |
download | busybox-w32-9b1381fd2fb7179f731709542507015799f90a51.tar.gz busybox-w32-9b1381fd2fb7179f731709542507015799f90a51.tar.bz2 busybox-w32-9b1381fd2fb7179f731709542507015799f90a51.zip |
convert calloc to xzalloc
fix sleep-on-die option
Diffstat (limited to 'miscutils/crond.c')
-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 */ |