calendar: new case 'minutely'

This commit is contained in:
Daniele Medri 2014-10-27 08:42:42 +01:00 committed by Lennart Poettering
parent 2d1239ea20
commit 272ac20517
1 changed files with 6 additions and 1 deletions

View File

@ -655,7 +655,12 @@ int calendar_spec_from_string(const char *p, CalendarSpec **spec) {
if (!c)
return -ENOMEM;
if (strcaseeq(p, "hourly")) {
if (strcaseeq(p, "minutely")) {
r = const_chain(0, &c->second);
if (r < 0)
goto fail;
} else if (strcaseeq(p, "hourly")) {
r = const_chain(0, &c->minute);
if (r < 0)
goto fail;