From 66be6a23d71fcc068d6b813f0e0be2f8f0b6aa88 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Tue, 8 Aug 2017 09:49:26 +0200 Subject: [PATCH] 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 --- watchdog.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/watchdog.h b/watchdog.h index d63343c..466818f 100644 --- a/watchdog.h +++ b/watchdog.h @@ -50,8 +50,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) -- 2.30.2