From ce7979bd7d6278bc1b67cf46a73a3d23e02a6ae5 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Wed, 11 Dec 2019 12:31:21 +0000 Subject: Extract port binding code to a function and improve output. --- src/socket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index 736e09486..64dc7ef25 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -86,7 +86,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports) continue; if (!BindPort(tag, bindspec, old_ports)) - failed_ports.push_back(std::make_pair(bindspec, errno)); + failed_ports.push_back(FailedPort(errno, bindspec, tag)); else bound++; } @@ -120,7 +120,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports) irc::sockets::untosa(fullpath, bindspec); if (!BindPort(tag, bindspec, old_ports)) - failed_ports.push_back(std::make_pair(bindspec, errno)); + failed_ports.push_back(FailedPort(errno, bindspec, tag)); else bound++; } -- cgit v1.3.1-10-gc9f91