summaryrefslogtreecommitdiff
path: root/nuttx/examples
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-11 23:35:36 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-11 23:35:36 +0000
commitbf91815c3fd4be584af323447605624b33932f63 (patch)
tree3f20fc7294bd7fdf20bcd4b5110f1dccb6165cd0 /nuttx/examples
parentdf9cb3ba59cdd40da994ff9ab6b153ef12875d9e (diff)
downloadpx4-nuttx-bf91815c3fd4be584af323447605624b33932f63.tar.gz
px4-nuttx-bf91815c3fd4be584af323447605624b33932f63.tar.bz2
px4-nuttx-bf91815c3fd4be584af323447605624b33932f63.zip
Add a stub that can be used when networking is enabled, but there is no ethernet driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3368 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples')
-rw-r--r--nuttx/examples/nsh/nsh_main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/examples/nsh/nsh_main.c b/nuttx/examples/nsh/nsh_main.c
index f9a34f0a1..85b84d4b2 100644
--- a/nuttx/examples/nsh/nsh_main.c
+++ b/nuttx/examples/nsh/nsh_main.c
@@ -494,16 +494,16 @@ static int nsh_execute(FAR struct nsh_vtbl_s *vtbl, int argc, char *argv[])
/* If the command was not found, then try to execute the command from
* a list of pre-built applications.
- */
+ */
#ifdef CONFIG_EXAMPLES_NSH_BUILTIN_APPS
if (handler == cmd_unrecognized && nsh_execapp(vtbl, cmd, argv) == OK)
{
- /* The pre-built application was successfully started -- run OK.
- * If not, then fall through to execute the cmd_nrecognized handler.
- */
+ /* The pre-built application was successfully started -- return OK.
+ * If not, then fall through to execute the cmd_nrecognized handler.
+ */
- return OK;
+ return OK;
}
#endif