summaryrefslogtreecommitdiff
path: root/digital/ucoolib/ucoolib/arch/host/mex/mex_node.host.cc
diff options
context:
space:
mode:
authorNicolas Schodet2013-02-21 19:26:55 +0100
committerNicolas Schodet2013-03-01 22:57:32 +0100
commited853465a281b6f29bf2036d643d24b2ae367d12 (patch)
tree07d992f493928b146fd519024a2b1165900baa18 /digital/ucoolib/ucoolib/arch/host/mex/mex_node.host.cc
parentc07e5335bb9c178854ef0d9f686414cc66b7a240 (diff)
digital/ucoolib/ucoolib/arch/host/mex: use std::string
Diffstat (limited to 'digital/ucoolib/ucoolib/arch/host/mex/mex_node.host.cc')
-rw-r--r--digital/ucoolib/ucoolib/arch/host/mex/mex_node.host.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/digital/ucoolib/ucoolib/arch/host/mex/mex_node.host.cc b/digital/ucoolib/ucoolib/arch/host/mex/mex_node.host.cc
index 5fdd81ae..d1a4c703 100644
--- a/digital/ucoolib/ucoolib/arch/host/mex/mex_node.host.cc
+++ b/digital/ucoolib/ucoolib/arch/host/mex/mex_node.host.cc
@@ -124,11 +124,11 @@ Node::response (Msg &msg)
}
mtype_t
-Node::reserve (const char *name)
+Node::reserve (const std::string &name)
{
// Send request.
Msg msg (MTYPE_RES);
- msg.push (name, std::strlen (name));
+ msg.push (name.data (), name.size ());
send (msg);
// Wait for response.
std::auto_ptr<Msg> rsp;