summaryrefslogtreecommitdiff
path: root/apps/examples/ftpd/ftpd_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/ftpd/ftpd_main.c')
-rw-r--r--apps/examples/ftpd/ftpd_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/ftpd/ftpd_main.c b/apps/examples/ftpd/ftpd_main.c
index 8054c3207..e26492324 100644
--- a/apps/examples/ftpd/ftpd_main.c
+++ b/apps/examples/ftpd/ftpd_main.c
@@ -221,7 +221,11 @@ int ftpd_daemon(int s_argc, char **s_argv)
* Name: ftpd_main
****************************************************************************/
+#ifdef CONFIG_BUILD_KERNEL
+int main(int argc, FAR char **argv)
+#else
int ftpd_main(int s_argc, char **s_argv)
+#endif
{
/* Check if we have already initialized the network */