Commit f987f4b3 authored by Martin Sustrik's avatar Martin Sustrik

FreeBSD complation error fixed

There was an error in pgm_receiver wrt strict aliasing.
Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent 2970d6c3
......@@ -151,7 +151,10 @@ void zmq::pgm_receiver_t::in_event ()
while (true) {
// Get new batch of data.
ssize_t received = pgm_socket.receive ((void**) &data, &tsi);
// Note the workaround made not to break strict-aliasing rules.
void *tmp = NULL;
ssize_t received = pgm_socket.receive (&tmp, &tsi);
data = (unsigned char*) tmp;
// No data to process. This may happen if the packet received is
// neither ODATA nor ODATA.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment