diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-28 23:04:54 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-28 23:04:54 +0000 |
commit | 62f15df2d7d7ad3a3bc4a93fbb6e94644f1e0f3f (patch) | |
tree | ecd94fbfa9e5e21f09aa4526ddaabaa93472a1b7 /nuttx/graphics/nxmu/nx_connect.c | |
parent | 783dea5150512780cfaba1048403caf757108f45 (diff) | |
download | px4-nuttx-62f15df2d7d7ad3a3bc4a93fbb6e94644f1e0f3f.tar.gz px4-nuttx-62f15df2d7d7ad3a3bc4a93fbb6e94644f1e0f3f.tar.bz2 px4-nuttx-62f15df2d7d7ad3a3bc4a93fbb6e94644f1e0f3f.zip |
Changes from initial NX debug
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1341 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxmu/nx_connect.c')
-rw-r--r-- | nuttx/graphics/nxmu/nx_connect.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/nuttx/graphics/nxmu/nx_connect.c b/nuttx/graphics/nxmu/nx_connect.c index 9e29f736b..401d20d92 100644 --- a/nuttx/graphics/nxmu/nx_connect.c +++ b/nuttx/graphics/nxmu/nx_connect.c @@ -99,7 +99,6 @@ static uint32 g_nxcid = 1; * * Input Parameters: * svrmqname - The name for the server incoming message queue - * cb - Callbacks used to process received NX server messages * * Return: * Success: A non-NULL handle used with subsequent NX accesses @@ -107,8 +106,7 @@ static uint32 g_nxcid = 1; * ****************************************************************************/ -NXHANDLE nx_connectionstance(FAR const char *svrmqname, - FAR const struct nx_callback_s *cb) +NXHANDLE nx_connectionstance(FAR const char *svrmqname) { FAR struct nxfe_conn_s *conn; struct nxsvrmsg_s msg; @@ -119,7 +117,7 @@ NXHANDLE nx_connectionstance(FAR const char *svrmqname, /* Sanity checking */ #ifdef CONFIG_DEBUG - if (!svrmqname || !cb) + if (!svrmqname) { errno = EINVAL; return NULL; @@ -135,10 +133,6 @@ NXHANDLE nx_connectionstance(FAR const char *svrmqname, goto errout; } - /* Save the callback vtable */ - - conn->cb = cb; - /* Create the client MQ name */ nxmu_semtake(&g_nxlibsem); |