summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/configparser.cpp4
-rw-r--r--src/listensocket.cpp3
-rw-r--r--src/modules/m_spanningtree/commands.h4
3 files changed, 7 insertions, 4 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp
index d3723d350..0e2a86706 100644
--- a/src/configparser.cpp
+++ b/src/configparser.cpp
@@ -460,13 +460,13 @@ void ConfigTag::CheckRange(const std::string& key, long& res, long def, long min
}
}
-time_t ConfigTag::getDuration(const std::string& key, long def, long min, long max)
+long ConfigTag::getDuration(const std::string& key, long def, long min, long max)
{
std::string duration;
if (!readString(key, duration))
return def;
- time_t ret = InspIRCd::Duration(duration);
+ long ret = InspIRCd::Duration(duration);
CheckRange(key, ret, def, min, max);
return ret;
}
diff --git a/src/listensocket.cpp b/src/listensocket.cpp
index 9b69b53ff..ca518c59e 100644
--- a/src/listensocket.cpp
+++ b/src/listensocket.cpp
@@ -21,7 +21,10 @@
#include "inspircd.h"
#include "socket.h"
#include "socketengine.h"
+
+#ifndef _WIN32
#include <netinet/tcp.h>
+#endif
ListenSocket::ListenSocket(ConfigTag* tag, const irc::sockets::sockaddrs& bind_to)
: bind_tag(tag)
diff --git a/src/modules/m_spanningtree/commands.h b/src/modules/m_spanningtree/commands.h
index d0465a447..700176a16 100644
--- a/src/modules/m_spanningtree/commands.h
+++ b/src/modules/m_spanningtree/commands.h
@@ -259,10 +259,10 @@ class CommandSNONotice : public ServerCommand
CmdResult Handle(User* user, std::vector<std::string>& parameters);
};
-class CommandVersion : public ServerOnlyServerCommand<CommandServer>
+class CommandVersion : public ServerOnlyServerCommand<CommandVersion>
{
public:
- CommandVersion(Module* Creator) : ServerOnlyServerCommand<CommandServer>(Creator, "VERSION", 1) { }
+ CommandVersion(Module* Creator) : ServerOnlyServerCommand<CommandVersion>(Creator, "VERSION", 1) { }
CmdResult HandleServer(TreeServer* server, std::vector<std::string>& parameters);
};