From: Hans Dedecker Date: Tue, 8 Aug 2017 07:49:26 +0000 (+0200) Subject: watchdog: fix inline watchdog_get_magicclose function prototype X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a17e1e8ec121602dc1fec7a24cbc8e7534c74a01;p=oweals%2Fprocd.git watchdog: fix inline watchdog_get_magicclose function prototype Fix procd compilation issue which occurs when DISABLE_INIT is set as the inline watchdog_get_magicclose function prototype was wrong. Signed-off-by: Hans Dedecker --- diff --git a/watchdog.h b/watchdog.h index fd9aed2..73c75d5 100644 --- a/watchdog.h +++ b/watchdog.h @@ -52,8 +52,9 @@ static inline void watchdog_set_magicclose(bool val) { } -static inline void watchdog_get_magicclose(bool val) +static inline bool watchdog_get_magicclose(void) { + return false; } static inline void watchdog_set_stopped(bool val)