event/PollGroupWinSelect: make EVENT_{READ,WRITE} static

This commit is contained in:
Max Kellermann 2020-04-23 15:10:56 +02:00
parent e53a4d0a9e
commit e71bd2a08b

View File

@ -23,8 +23,8 @@
#include "PollGroupWinSelect.hxx" #include "PollGroupWinSelect.hxx"
constexpr int EVENT_READ = 0; static constexpr int EVENT_READ = 0;
constexpr int EVENT_WRITE = 1; static constexpr int EVENT_WRITE = 1;
static constexpr static constexpr
bool HasEvent(unsigned events, int event_id) noexcept bool HasEvent(unsigned events, int event_id) noexcept