summaryrefslogtreecommitdiff
path: root/src/network/poller.cpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-04-07 11:10:51 +0200
committerlouiz’ <louiz@louiz.org>2017-04-07 11:10:51 +0200
commit8a912ea3a3a74f6c4d2cb67adf3f60b4ec0a1c9f (patch)
tree1a5a65ae1ebf2bd76e6d472a189ede0ffe67ebfa /src/network/poller.cpp
parent0dfeb5a94c0da9b25f0d6ed4bd27f3f6ffc5035f (diff)
downloadbiboumi-8a912ea3a3a74f6c4d2cb67adf3f60b4ec0a1c9f.tar.gz
biboumi-8a912ea3a3a74f6c4d2cb67adf3f60b4ec0a1c9f.tar.bz2
biboumi-8a912ea3a3a74f6c4d2cb67adf3f60b4ec0a1c9f.tar.xz
biboumi-8a912ea3a3a74f6c4d2cb67adf3f60b4ec0a1c9f.zip
Apply a few clang-tidy cppcoreguidelines-* fixes
Diffstat (limited to 'src/network/poller.cpp')
-rw-r--r--src/network/poller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/poller.cpp b/src/network/poller.cpp
index 9f62e36..ca49180 100644
--- a/src/network/poller.cpp
+++ b/src/network/poller.cpp
@@ -198,7 +198,7 @@ int Poller::poll(const std::chrono::milliseconds& timeout)
static const size_t max_events = 12;
struct epoll_event revents[max_events];
// Unblock all signals, only during the epoll_pwait call
- sigset_t empty_signal_set;
+ sigset_t empty_signal_set{};
sigemptyset(&empty_signal_set);
const int nb_events = ::epoll_pwait(this->epfd, revents, max_events, timeout.count(),
&empty_signal_set);