diff options
Diffstat (limited to 'nuttx/graphics/nxmu/nx_connect.c')
-rw-r--r-- | nuttx/graphics/nxmu/nx_connect.c | 14 |
1 files changed, 7 insertions, 7 deletions
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 <spudmonkey@racsa.co.cr> + * Copyright (C) 2008-2009, 2011-2012 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt <gnutt@nuttx.org> * * 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; } |