summaryrefslogtreecommitdiff
path: root/apps/examples/watchdog/watchdog_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/watchdog/watchdog_main.c')
-rw-r--r--apps/examples/watchdog/watchdog_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/watchdog/watchdog_main.c b/apps/examples/watchdog/watchdog_main.c
index 5dbf4aee4..2ae3a8a33 100644
--- a/apps/examples/watchdog/watchdog_main.c
+++ b/apps/examples/watchdog/watchdog_main.c
@@ -220,7 +220,11 @@ static void parse_args(FAR struct wdog_example_s *wdog, int argc, FAR char **arg
* Name: wdog_main
****************************************************************************/
+#ifdef CONFIG_BUILD_KERNEL
+int main(int argc, FAR char **argv)
+#else
int wdog_main(int argc, char *argv[])
+#endif
{
struct wdog_example_s wdog;
#ifdef CONFIG_DEBUG_WATCHDOG