From f9417dab4d892700b115e61a1e15a4f8e34499bd Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sat, 7 Mar 2020 13:25:18 +0000 Subject: [PATCH] Problem: msg_t functions do not respect coding style Solution: fix them --- src/msg.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/msg.cpp b/src/msg.cpp index b38b6aee..5ec54c48 100644 --- a/src/msg.cpp +++ b/src/msg.cpp @@ -221,7 +221,7 @@ int zmq::msg_t::init_leave () return 0; } -int zmq::msg_t::init_subscribe (const size_t size_, const unsigned char *topic) +int zmq::msg_t::init_subscribe (const size_t size_, const unsigned char *topic_) { int rc = init_size (size_); if (rc == 0) { @@ -229,14 +229,14 @@ int zmq::msg_t::init_subscribe (const size_t size_, const unsigned char *topic) // We explicitly allow a NULL subscription with size zero if (size_) { - assert (topic); - memcpy (data (), topic, size_); + assert (topic_); + memcpy (data (), topic_, size_); } } return rc; } -int zmq::msg_t::init_cancel (const size_t size_, const unsigned char *topic) +int zmq::msg_t::init_cancel (const size_t size_, const unsigned char *topic_) { int rc = init_size (size_); if (rc == 0) { @@ -244,8 +244,8 @@ int zmq::msg_t::init_cancel (const size_t size_, const unsigned char *topic) // We explicitly allow a NULL subscription with size zero if (size_) { - assert (topic); - memcpy (data (), topic, size_); + assert (topic_); + memcpy (data (), topic_, size_); } } return rc;