Commit 4684f678 authored by Mathieu Stefani's avatar Mathieu Stefani

Fixed an uninitialized value in os

parent e5d50bf5
...@@ -204,7 +204,7 @@ namespace Polling { ...@@ -204,7 +204,7 @@ namespace Polling {
int int
Epoll::toEpollEvents(Flags<NotifyOn> interest) const { Epoll::toEpollEvents(Flags<NotifyOn> interest) const {
int events; int events = 0;
if (interest.hasFlag(NotifyOn::Read)) if (interest.hasFlag(NotifyOn::Read))
events |= EPOLLIN; events |= EPOLLIN;
......
...@@ -54,10 +54,10 @@ enum class Mode { ...@@ -54,10 +54,10 @@ enum class Mode {
enum class NotifyOn { enum class NotifyOn {
None = 0, None = 0,
Read = 1, Read = 1,
Write = Read << 1, Write = Read << 1,
Hangup = Write << 1, Hangup = Read << 2,
Shutdown = Hangup << 1 Shutdown = Read << 3
}; };
DECLARE_FLAGS_OPERATORS(NotifyOn); DECLARE_FLAGS_OPERATORS(NotifyOn);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment