diff options
Diffstat (limited to 'apps/examples/discover/discover_main.c')
-rw-r--r-- | apps/examples/discover/discover_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/discover/discover_main.c b/apps/examples/discover/discover_main.c index 3995c475e..e64e7f011 100644 --- a/apps/examples/discover/discover_main.c +++ b/apps/examples/discover/discover_main.c @@ -85,7 +85,11 @@ * discover_main ****************************************************************************/ +#ifdef CONFIG_BUILD_KERNEL +int main(int argc, FAR char **argv) +#else int discover_main(int argc, char *argv[]) +#endif { /* If this task is excecutated as an NSH built-in function, then the * network has already been configured by NSH's start-up logic. |