From 47bea0e67e4093d4482e8781782b98abda134801 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 6 Sep 2014 09:19:15 -0600 Subject: With kernel build, entry point to all tasks is main, not some xyz_main --- apps/examples/nettest/nettest.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/examples/nettest') diff --git a/apps/examples/nettest/nettest.c b/apps/examples/nettest/nettest.c index a24ce30f4..1db57744e 100644 --- a/apps/examples/nettest/nettest.c +++ b/apps/examples/nettest/nettest.c @@ -67,7 +67,11 @@ * nettest_main ****************************************************************************/ +#ifdef CONFIG_BUILD_KERNEL +int main(int argc, FAR char **argv) +#else int nettest_main(int argc, char *argv[]) +#endif { struct in_addr addr; #ifdef CONFIG_EXAMPLES_NETTEST_NOMAC -- cgit v1.2.3