[systemd-devel] [PATCH 4/7] calendar: new case 'minutely'

Lennart Poettering lennart at poettering.net
Mon Oct 27 05:42:34 PDT 2014


On Mon, 27.10.14 08:42, Daniele Medri (dmedri at gmail.com) wrote:

Looks good! Applied! Thanks!

> ---
>  src/shared/calendarspec.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/src/shared/calendarspec.c b/src/shared/calendarspec.c
> index 196a330..6186301 100644
> --- a/src/shared/calendarspec.c
> +++ b/src/shared/calendarspec.c
> @@ -833,7 +833,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;
> -- 
> 1.9.3
> 
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list