Browse Source

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 <dedeckeh@gmail.com>
Hans Dedecker 6 years ago
parent
commit
a17e1e8ec1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      watchdog.h

+ 2 - 1
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)