summaryrefslogtreecommitdiff
path: root/apps/examples/telnetd/telnetd.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/telnetd/telnetd.c')
-rw-r--r--apps/examples/telnetd/telnetd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/telnetd/telnetd.c b/apps/examples/telnetd/telnetd.c
index 2541f96ef..a54d2f3b6 100644
--- a/apps/examples/telnetd/telnetd.c
+++ b/apps/examples/telnetd/telnetd.c
@@ -224,7 +224,11 @@ static void telnetd_netinit(void)
* Public Functions
****************************************************************************/
+#ifdef CONFIG_BUILD_KERNEL
+int main(int argc, FAR char **argv)
+#else
int telnetd_main(int argc, char *argv[])
+#endif
{
struct telnetd_config_s config;
int ret;