From 5384ddf545575bc27904b3534fb9d2340de7a1d7 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Tue, 27 Aug 2013 15:03:10 +0200 Subject: Fix Windows build and a few more problems --- src/configparser.cpp | 4 ++-- src/listensocket.cpp | 3 +++ src/modules/m_spanningtree/commands.h | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src') 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 +#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& parameters); }; -class CommandVersion : public ServerOnlyServerCommand +class CommandVersion : public ServerOnlyServerCommand { public: - CommandVersion(Module* Creator) : ServerOnlyServerCommand(Creator, "VERSION", 1) { } + CommandVersion(Module* Creator) : ServerOnlyServerCommand(Creator, "VERSION", 1) { } CmdResult HandleServer(TreeServer* server, std::vector& parameters); }; -- cgit v1.2.3