From 02340285c564a7e82105137192d46d554a6fce3a Mon Sep 17 00:00:00 2001 From: Dominic Hamon Date: Sun, 30 May 2021 20:37:54 +0100 Subject: Added -Wshorten-64-to-32 and fixed all warnings. --- src/modules/m_ident.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_ident.cpp') diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 0cb029bb0..6e09646a5 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -204,7 +204,7 @@ class IdentRequestSocket : public EventHandler * extremely short - there is *no* sane reason it'd be in more than one packet */ char ibuf[256]; - int recvresult = SocketEngine::Recv(this, ibuf, sizeof(ibuf)-1, 0); + ssize_t recvresult = SocketEngine::Recv(this, ibuf, sizeof(ibuf)-1, 0); /* Close (but don't delete from memory) our socket * and flag as done since the ident lookup has finished @@ -274,7 +274,7 @@ class IdentRequestSocket : public EventHandler class ModuleIdent : public Module { private: - unsigned int timeout; + unsigned long timeout; bool prefixunqueried; SimpleExtItem socket; IntExtItem state; -- cgit v1.3.1-10-gc9f91