diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-12-29 11:11:48 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-12-29 11:11:48 -0600 |
commit | f3ce29aa9b591ff1b6a697484528f7340580ace7 (patch) | |
tree | 69b85fc081c232b5ed806b06e8d0f750b42cbdea /NxWidgets/libnxwidgets/src | |
parent | 513671256fe287033b8874d352fdf34bf6a14bea (diff) | |
download | nuttx-f3ce29aa9b591ff1b6a697484528f7340580ace7.tar.gz nuttx-f3ce29aa9b591ff1b6a697484528f7340580ace7.tar.bz2 nuttx-f3ce29aa9b591ff1b6a697484528f7340580ace7.zip |
Add nx_start() to simplify starting the NX server from within the RTOS
Diffstat (limited to 'NxWidgets/libnxwidgets/src')
-rw-r--r-- | NxWidgets/libnxwidgets/src/cnxserver.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/NxWidgets/libnxwidgets/src/cnxserver.cxx b/NxWidgets/libnxwidgets/src/cnxserver.cxx index 84f6701da..6adbc20a5 100644 --- a/NxWidgets/libnxwidgets/src/cnxserver.cxx +++ b/NxWidgets/libnxwidgets/src/cnxserver.cxx @@ -201,7 +201,6 @@ bool CNxServer::connect(void) { struct sched_param param; pthread_t thread; - pid_t serverId; int ret; // Set the client task priority @@ -218,8 +217,9 @@ bool CNxServer::connect(void) // Start the server task gvdbg("CNxServer::connect: Starting server task\n"); - serverId = TASK_CREATE("NX Server", CONFIG_NXWIDGETS_SERVERPRIO, - CONFIG_NXWIDGETS_SERVERSTACK, server, (FAR char * const *)0); + pid_t serverId = TASK_CREATE("NX Server", CONFIG_NXWIDGETS_SERVERPRIO, + CONFIG_NXWIDGETS_SERVERSTACK, server, + (FAR char * const *)0); if (serverId < 0) { gdbg("NxServer::connect: Failed to create nx_servertask task: %d\n", errno); |