initialize the stop schedule
This commit is contained in:
parent
4ab60ff109
commit
0eb47b9af3
@ -56,11 +56,6 @@ typedef struct scheduleitem {
|
|||||||
|
|
||||||
static TAILQ_HEAD(, scheduleitem) schedule;
|
static TAILQ_HEAD(, scheduleitem) schedule;
|
||||||
|
|
||||||
void initialize_schedulelist(void)
|
|
||||||
{
|
|
||||||
TAILQ_INIT(&schedule);
|
|
||||||
}
|
|
||||||
|
|
||||||
void free_schedulelist(void)
|
void free_schedulelist(void)
|
||||||
{
|
{
|
||||||
SCHEDULEITEM *s1 = TAILQ_FIRST(&schedule);
|
SCHEDULEITEM *s1 = TAILQ_FIRST(&schedule);
|
||||||
@ -186,6 +181,7 @@ void parse_schedule(const char *applet, const char *string, int timeout)
|
|||||||
size_t len;
|
size_t len;
|
||||||
SCHEDULEITEM *item;
|
SCHEDULEITEM *item;
|
||||||
|
|
||||||
|
TAILQ_INIT(&schedule);
|
||||||
if (string)
|
if (string)
|
||||||
for (slash = string; *slash; slash++)
|
for (slash = string; *slash; slash++)
|
||||||
if (*slash == '/')
|
if (*slash == '/')
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
#ifndef __RC_SCHEDULES_H
|
#ifndef __RC_SCHEDULES_H
|
||||||
#define __RC_SCHEDULES_H
|
#define __RC_SCHEDULES_H
|
||||||
|
|
||||||
void initialize_schedulelist(void);
|
|
||||||
void free_schedulelist(void);
|
void free_schedulelist(void);
|
||||||
int parse_signal(const char *applet, const char *sig);
|
int parse_signal(const char *applet, const char *sig);
|
||||||
void parse_schedule(const char *applet, const char *string, int timeout);
|
void parse_schedule(const char *applet, const char *string, int timeout);
|
||||||
|
Loading…
Reference in New Issue
Block a user