From b1bbea743d6eef38eebf9975a3b19bbfb7e71233 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 17 May 2012 19:32:48 +0000 Subject: Re-factor NX messaging logic in preparation for a new message control feature git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4744 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/graphics/nxmu/nx_connect.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'nuttx/graphics/nxmu/nx_connect.c') diff --git a/nuttx/graphics/nxmu/nx_connect.c b/nuttx/graphics/nxmu/nx_connect.c index e872f3505..4d91b54d5 100644 --- a/nuttx/graphics/nxmu/nx_connect.c +++ b/nuttx/graphics/nxmu/nx_connect.c @@ -1,8 +1,8 @@ /**************************************************************************** * graphics/nxmu/nx_connect.c * - * Copyright (C) 2008-2009, 2011 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt + * Copyright (C) 2008-2009, 2011-2012 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -113,7 +113,7 @@ static uint32_t g_nxcid = 1; NXHANDLE nx_connectinstance(FAR const char *svrmqname) { FAR struct nxfe_conn_s *conn; - struct nxsvrmsg_s msg; + struct nxsvrmsg_s outmsg; char climqname[NX_CLIENT_MXNAMELEN]; struct mq_attr attr; int ret; @@ -177,13 +177,13 @@ NXHANDLE nx_connectinstance(FAR const char *svrmqname) /* Inform the server that this client exists */ - msg.msgid = NX_SVRMSG_CONNECT; - msg.conn = conn; + outmsg.msgid = NX_SVRMSG_CONNECT; + outmsg.conn = conn; - ret = mq_send(conn->cwrmq, &msg, sizeof(struct nxsvrmsg_s), NX_SVRMSG_PRIO); + ret = nxmu_sendserver(conn, &outmsg, sizeof(struct nxsvrmsg_s)); if (ret < 0) { - gdbg("mq_send failed: %d\n", errno); + gdbg("nxmu_sendserver failed: %d\n", errno); goto errout_with_wmq; } -- cgit v1.2.3