diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-12-17 13:37:57 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-12-17 13:37:57 +0100 |
commit | 720e31a5113c25e48d7754bb812ab84c6c31d1d9 (patch) | |
tree | 5a697d40c8df6c71d37168e401a058b94f0b20cf /src/network | |
parent | 0ab5ecea133cef5a009bc34ba42c4eaacde6a7dd (diff) | |
download | biboumi-720e31a5113c25e48d7754bb812ab84c6c31d1d9.tar.gz biboumi-720e31a5113c25e48d7754bb812ab84c6c31d1d9.tar.bz2 biboumi-720e31a5113c25e48d7754bb812ab84c6c31d1d9.tar.xz biboumi-720e31a5113c25e48d7754bb812ab84c6c31d1d9.zip |
Fix a few issues reported by static analyzers
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/poller.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/poller.cpp b/src/network/poller.cpp index d89e50f..29c4bce 100644 --- a/src/network/poller.cpp +++ b/src/network/poller.cpp @@ -133,7 +133,7 @@ void Poller::stop_watching_send_events(SocketHandler* socket_handler) int Poller::poll(const std::chrono::milliseconds& timeout) { - if (this->socket_handlers.size() == 0) + if (this->socket_handlers.empty()) return -1; #if POLLER == POLL int nb_events = ::poll(this->fds, this->nfds, timeout.count()); |