author | Gustavo J. A. M. Carneiro <gjc@inescporto.pt> |
Fri, 15 Oct 2010 18:12:12 +0100 | |
changeset 6365 | 5aae46b0c51c |
parent 6364 | 931c773d9fe0 |
--- a/src/real-stack/real-udp-socket.cc Fri Jun 18 17:18:59 2010 +0100 +++ b/src/real-stack/real-udp-socket.cc Fri Oct 15 18:12:12 2010 +0100 @@ -212,9 +212,11 @@ for (;;) { NS_LOG_LOGIC ("Calling poll()"); - struct pollfd fds = { m_socketFd, POLLIN, 0 }; - poll (&fds, 1, -1); - if (!(fds.revents & POLLIN)) + struct pollfd fds[1] = { + { m_socketFd, POLLIN, 0 } + }; + poll (fds, 1, -1); + if (!(fds[0].revents & POLLIN)) { continue; }