From d74965e6fe583562ebaf0767da6325a72d11643a Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Tue, 14 Sep 2021 22:36:14 +0200 Subject: watchdog: rename watchdog_set_timeout() into watchdog_setup() "watchdog_set_timeout()" was misleading as the function is not just a setter - it must be called for activating the watchdog device. --- src/shutdown/shutdown.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shutdown') diff --git a/src/shutdown/shutdown.c b/src/shutdown/shutdown.c index 2387e27985..903977bcb1 100644 --- a/src/shutdown/shutdown.c +++ b/src/shutdown/shutdown.c @@ -387,7 +387,7 @@ int main(int argc, char *argv[]) { log_warning_errno(r, "Failed to parse watchdog timeout '%s', ignoring: %m", watchdog_usec); else - (void) watchdog_set_timeout(usec); + (void) watchdog_setup(usec); } /* Lock us into memory */ -- cgit v1.2.1