watchdog: fix inline watchdog_get_magicclose function prototype
authorHans Dedecker <dedeckeh@gmail.com>
Tue, 8 Aug 2017 07:49:26 +0000 (09:49 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Tue, 8 Aug 2017 09:31:10 +0000 (11:31 +0200)
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 <dedeckeh@gmail.com>
watchdog.h

index d63343c..466818f 100644 (file)
@@ -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)