diff options
Diffstat (limited to 'source/tanya/event/internal')
| -rw-r--r-- | source/tanya/event/internal/epoll.d | 5 | ||||
| -rw-r--r-- | source/tanya/event/internal/selector.d | 1 |
2 files changed, 1 insertions, 5 deletions
diff --git a/source/tanya/event/internal/epoll.d b/source/tanya/event/internal/epoll.d index f4e99d9..0e76c3a 100644 --- a/source/tanya/event/internal/epoll.d +++ b/source/tanya/event/internal/epoll.d @@ -28,8 +28,6 @@ import core.sys.posix.netinet.in_; import core.time; import std.algorithm.comparison; -@nogc: - extern (C) nothrow { // TODO: Make a pull request for Phobos to mark this extern functions as @nogc. int epoll_create1(int __flags); @@ -42,7 +40,6 @@ private enum maxEvents = 128; class EpollLoop : Loop { -@nogc: /** * Initializes the loop. */ @@ -108,7 +105,7 @@ class EpollLoop : Loop * protocolFactory = Protocol factory. * socket = Socket. */ - protected override void acceptConnection(Protocol delegate() @nogc protocolFactory, + protected override void acceptConnection(Protocol delegate() protocolFactory, int socket) { sockaddr_in client_addr; diff --git a/source/tanya/event/internal/selector.d b/source/tanya/event/internal/selector.d index 9682a5d..36dca76 100644 --- a/source/tanya/event/internal/selector.d +++ b/source/tanya/event/internal/selector.d @@ -24,7 +24,6 @@ import core.sys.posix.unistd; */ class SocketTransport : DuplexTransport { -@nogc: private int socket_ = -1; private Protocol protocol_; |
