summaryrefslogtreecommitdiff
path: root/apps/examples/nettest/nettest.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-08-30 20:13:50 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-08-30 20:13:50 +0000
commit79c7065433ae27932ad8b781d38b8f7832b01581 (patch)
treef770414832eeecb35adb70404b31d147afad7235 /apps/examples/nettest/nettest.c
parentf9d19788072090be80b71ab0d0de14507a6e739b (diff)
downloadnuttx-79c7065433ae27932ad8b781d38b8f7832b01581.tar.gz
nuttx-79c7065433ae27932ad8b781d38b8f7832b01581.tar.bz2
nuttx-79c7065433ae27932ad8b781d38b8f7832b01581.zip
Add configurable application entry point
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5070 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/nettest/nettest.c')
-rw-r--r--apps/examples/nettest/nettest.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/apps/examples/nettest/nettest.c b/apps/examples/nettest/nettest.c
index d6d63eeef..b95d9da62 100644
--- a/apps/examples/nettest/nettest.c
+++ b/apps/examples/nettest/nettest.c
@@ -53,18 +53,6 @@
* Definitions
****************************************************************************/
-/* If CONFIG_NSH_BUILTIN_APPS is defined, then it is assumed that you want
- * to execute the DHCPD daemon as an NSH built-in task.
- */
-
-#ifdef CONFIG_NSH_BUILTIN_APPS
-# define MAIN_NAME nettest_main
-# define MAIN_NAME_STRING "nettest_main"
-#else
-# define MAIN_NAME user_start
-# define MAIN_NAME_STRING "user_start"
-#endif
-
/****************************************************************************
* Private Data
****************************************************************************/
@@ -74,10 +62,10 @@
****************************************************************************/
/****************************************************************************
- * user_start
+ * nettest_main
****************************************************************************/
-int MAIN_NAME(int argc, char *argv[])
+int nettest_main(int argc, char *argv[])
{
struct in_addr addr;
#ifdef CONFIG_EXAMPLE_NETTEST_NOMAC