scron

simple cron daemon
git clone git://git.2f30.org/scron.git
Log | Files | Refs | README | LICENSE

commit f699c789462fd693597a36d4fc6df700d5f51f89
parent ae38eda6a95910cbbac163f65bca57f20e574d78
Author: sin <sin@2f30.org>
Date:   Mon Jul  7 08:04:52 +0100

Use TAILQ_HEAD_INITIALIZER()

Diffstat:
crond.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/crond.c b/crond.c @@ -40,7 +40,7 @@ struct ctabentry { char *argv0; static sig_atomic_t reload; -static TAILQ_HEAD(ctabhead, ctabentry) ctabhead; +static TAILQ_HEAD(, ctabentry) ctabhead = TAILQ_HEAD_INITIALIZER(ctabhead); static char *config = "/etc/crontab"; static int nflag; @@ -388,8 +388,6 @@ main(int argc, char *argv[]) if (argc > 0) usage(); - TAILQ_INIT(&ctabhead); - if (nflag == 0) { openlog(argv[0], LOG_CONS | LOG_PID, LOG_CRON); daemon(0, 0);