summaryrefslogtreecommitdiff
path: root/apps/examples/nxconsole/nxcon_server.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-03-28 17:19:17 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-03-28 17:19:17 +0000
commit51f649620cc2be02b02f31ec872920e5ba2afb79 (patch)
treee12183151cf2f149ff8319895a151c458db3ba01 /apps/examples/nxconsole/nxcon_server.c
parent6a79e47a66fcc0d38cffca54b862a1efa19eb822 (diff)
downloadpx4-nuttx-51f649620cc2be02b02f31ec872920e5ba2afb79.tar.gz
px4-nuttx-51f649620cc2be02b02f31ec872920e5ba2afb79.tar.bz2
px4-nuttx-51f649620cc2be02b02f31ec872920e5ba2afb79.zip
NX console should only be available if NX multi-user mode is enabled
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4535 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/nxconsole/nxcon_server.c')
-rw-r--r--apps/examples/nxconsole/nxcon_server.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/examples/nxconsole/nxcon_server.c b/apps/examples/nxconsole/nxcon_server.c
index 661479a4a..ccd000ec0 100644
--- a/apps/examples/nxconsole/nxcon_server.c
+++ b/apps/examples/nxconsole/nxcon_server.c
@@ -57,8 +57,6 @@
#include "nxcon_internal.h"
-#ifdef CONFIG_NX_MULTIUSER
-
/****************************************************************************
* Definitions
****************************************************************************/
@@ -176,7 +174,7 @@ FAR void *nxcon_listener(FAR void *arg)
*/
message("nxcon_listener: Lost server connection: %d\n", errno);
- exit(NXEXIT_LOSTSERVERCONN);
+ exit(EXIT_FAILURE);
}
/* If we received a message, we must be connected */
@@ -189,5 +187,3 @@ FAR void *nxcon_listener(FAR void *arg)
}
}
}
-
-#endif /* CONFIG_NX_MULTIUSER */