diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-11-22 00:38:55 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-11-22 00:45:22 +0100 |
commit | 68b29a9fca915c83b9192790ec61189430cd5de6 (patch) | |
tree | 6f1d6f6e049aab2194ac66398bc304068daa3694 /src/core/service.c | |
parent | 0b2665c33de93d576047bf55ecff9e1435033f54 (diff) |
manager: introduce watch_init() initializer for watches
Diffstat (limited to 'src/core/service.c')
-rw-r--r-- | src/core/service.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/service.c b/src/core/service.c index aad6d66439..34d24ffa92 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -127,9 +127,9 @@ static void service_init(Unit *u) { s->restart_usec = DEFAULT_RESTART_USEC; s->type = _SERVICE_TYPE_INVALID; - s->watchdog_watch.type = WATCH_INVALID; + watch_init(&s->watchdog_watch); + watch_init(&s->timer_watch); - s->timer_watch.type = WATCH_INVALID; #ifdef HAVE_SYSV_COMPAT s->sysv_start_priority = -1; s->sysv_start_priority_from_rcnd = -1; |