mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-14 23:07:59 +02:00
Problem: read-only arguments of mtrie are not declared as const
Solution: add const, introduce typedef
This commit is contained in:
@@ -188,7 +188,7 @@ int zmq::xpub_t::xsetsockopt (int option_,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void stub (unsigned char *data_, size_t size_, void *arg_)
|
||||
static void stub (zmq::mtrie_t::prefix_t data_, size_t size_, void *arg_)
|
||||
{
|
||||
LIBZMQ_UNUSED (data_);
|
||||
LIBZMQ_UNUSED (size_);
|
||||
@@ -295,7 +295,7 @@ bool zmq::xpub_t::xhas_in ()
|
||||
return !pending_data.empty ();
|
||||
}
|
||||
|
||||
void zmq::xpub_t::send_unsubscription (unsigned char *data_,
|
||||
void zmq::xpub_t::send_unsubscription (zmq::mtrie_t::prefix_t data_,
|
||||
size_t size_,
|
||||
void *arg_)
|
||||
{
|
||||
|
Reference in New Issue
Block a user