From 4a7bcebd5d177acd437a2e52a1f0b68adf420729 Mon Sep 17 00:00:00 2001 From: Craig Edwards Date: Thu, 4 Apr 2024 13:08:33 +0000 Subject: [PATCH] poll --- src/dpp/socketengines/poll.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/dpp/socketengines/poll.cpp b/src/dpp/socketengines/poll.cpp index 2c27bf2cd6..5b9453ba23 100644 --- a/src/dpp/socketengines/poll.cpp +++ b/src/dpp/socketengines/poll.cpp @@ -57,9 +57,8 @@ struct socket_engine_poll : public socket_engine_base { int processed = 0; for (size_t index = 0; index < poll_set.size() && processed < i; index++) { - struct pollfd& pfd = poll_set[index]; - const int fd = pfd.fd; - const short revents = pfd.revents; + const int fd = poll_set[index].fd; + const short revents = poll_set[index].revents; if (revents > 0) { processed++; @@ -159,4 +158,4 @@ struct socket_engine_poll : public socket_engine_base { std::unique_ptr create_socket_engine() { return std::make_unique(); -} \ No newline at end of file +}