Fixing incorrect argument order on va_start

Compile was failing on the monitor_event function function due to the
va_start params being switched.
This commit is contained in:
Ian Barber 2012-08-26 14:24:50 +01:00
parent 4a43a0d074
commit 8bf541b252

View File

@ -356,7 +356,7 @@ zmq::endpoint_t zmq::ctx_t::find_endpoint (const char *addr_)
void zmq::ctx_t::monitor_event (zmq::socket_base_t *socket_, int event_, ...)
{
va_list args;
va_start (event_, args);
va_start (args, event_);
va_monitor_event (socket_, event_, args);
va_end (args);
}