From b1eb362d8349447b607a9ccb075ba0043bb70947 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 25 Dec 2022 21:49:59 +0000 Subject: Refactor SocketEngine slightly. - Remove pointless shutdown() wrapper. - Remove pointless bounds checking function. - Make Bind and Listen take an EventHandler instead of a fd. - Add nullability attributes to every method. --- src/modules/m_ident.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_ident.cpp') diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 6cb401a2d..15e9a23d8 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -136,7 +136,7 @@ public: } /* Attempt to bind (ident requests must come from the ip the query is referring to */ - if (SocketEngine::Bind(GetFd(), bindaddr) < 0) + if (SocketEngine::Bind(this, bindaddr) < 0) { this->Close(); throw ModuleException(mod, "failed to bind()"); -- cgit v1.3.1-10-gc9f91