aboutsummaryrefslogtreecommitdiffstats
path: root/include/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/socket.h')
-rw-r--r--include/socket.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/socket.h b/include/socket.h
index ea5b37ea0..6d7cee958 100644
--- a/include/socket.h
+++ b/include/socket.h
@@ -159,15 +159,15 @@ namespace irc
struct CoreExport FailedPort final
{
/** The error which happened during binding. */
- int error;
+ const std::string error;
/** The endpoint on which we were attempting to bind. */
- irc::sockets::sockaddrs sa;
+ const irc::sockets::sockaddrs sa;
/** The config tag that the listener was created from. */
- std::shared_ptr<ConfigTag> tag;
+ const std::shared_ptr<ConfigTag> tag;
- FailedPort(int err, irc::sockets::sockaddrs& addr, const std::shared_ptr<ConfigTag>& cfg)
+ FailedPort(const std::string& err, irc::sockets::sockaddrs& addr, const std::shared_ptr<ConfigTag>& cfg)
: error(err)
, sa(addr)
, tag(cfg)