mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-07 05:58:45 +01:00
Change zmq_monitor_fn type to cast between pointer-to-object and pointer-to-function in a more standards compliant way
This commit is contained in:
@@ -1030,7 +1030,7 @@ void zmq::socket_base_t::monitor_event (int event_, ...)
|
||||
default:
|
||||
zmq_assert (false);
|
||||
}
|
||||
options.monitor ((void *)this, event_, &data);
|
||||
options.monitor->function ((void *)this, event_, &data);
|
||||
va_end (args);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user