diff options
author | Daniele Medri <dmedri@gmail.com> | 2014-10-27 08:42:42 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-10-27 13:42:02 +0100 |
commit | 272ac205176dc922a2da87d212fd2c88ece4231e (patch) | |
tree | c851bcbe2a3eb5921f798ee9ca3719f413acac0f /src | |
parent | 2d1239ea20f65b3d6ab5aeaef0efc464103be977 (diff) |
calendar: new case 'minutely'
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/calendarspec.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/shared/calendarspec.c b/src/shared/calendarspec.c index 64d0dec364..da920b6dd9 100644 --- a/src/shared/calendarspec.c +++ b/src/shared/calendarspec.c @@ -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; |