diff options
| author | 2021-05-30 20:37:54 +0100 | |
|---|---|---|
| committer | 2021-05-30 20:37:54 +0100 | |
| commit | 02340285c564a7e82105137192d46d554a6fce3a (patch) | |
| tree | 696d1a6249841de62c3fed70310c2a347fc66732 /src/modules/m_ident.cpp | |
| parent | Add a workaround for a bug in GitHub Actions. (diff) | |
Added -Wshorten-64-to-32 and fixed all warnings.
Diffstat (limited to 'src/modules/m_ident.cpp')
| -rw-r--r-- | src/modules/m_ident.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<IdentRequestSocket, stdalgo::cull_delete> socket; IntExtItem state; |
