commit: 0eb47b9af340dd07209a3920944ed085fe7bd359 Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com> AuthorDate: Mon Sep 18 15:36:17 2017 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Mon Sep 18 15:36:17 2017 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=0eb47b9a
initialize the stop schedule src/rc/rc-schedules.c | 6 +----- src/rc/rc-schedules.h | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/rc/rc-schedules.c b/src/rc/rc-schedules.c index 164581d6..9568e51d 100644 --- a/src/rc/rc-schedules.c +++ b/src/rc/rc-schedules.c @@ -56,11 +56,6 @@ typedef struct scheduleitem { static TAILQ_HEAD(, scheduleitem) schedule; -void initialize_schedulelist(void) -{ - TAILQ_INIT(&schedule); -} - void free_schedulelist(void) { SCHEDULEITEM *s1 = TAILQ_FIRST(&schedule); @@ -186,6 +181,7 @@ void parse_schedule(const char *applet, const char *string, int timeout) size_t len; SCHEDULEITEM *item; + TAILQ_INIT(&schedule); if (string) for (slash = string; *slash; slash++) if (*slash == '/') diff --git a/src/rc/rc-schedules.h b/src/rc/rc-schedules.h index 234e62df..e5dd64c2 100644 --- a/src/rc/rc-schedules.h +++ b/src/rc/rc-schedules.h @@ -13,7 +13,6 @@ #ifndef __RC_SCHEDULES_H #define __RC_SCHEDULES_H -void initialize_schedulelist(void); void free_schedulelist(void); int parse_signal(const char *applet, const char *sig); void parse_schedule(const char *applet, const char *string, int timeout);