diff options
-rw-r--r-- | include/socket.h | 4 | ||||
-rw-r--r-- | src/socket.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/socket.h b/include/socket.h index a2b727499..593550018 100644 --- a/include/socket.h +++ b/include/socket.h @@ -107,14 +107,14 @@ namespace irc * @param sa The structure to place the result in. Will be zeroed prior to conversion * @return true if the conversion was successful, false if not. */ - CoreExport int aptosa(const char* addr, int port, irc::sockets::sockaddrs* sa); + CoreExport bool aptosa(const char* addr, int port, irc::sockets::sockaddrs* sa); /** Convert a binary sockaddr to an address-port pair * @param sa The structure to convert * @param addr the IP address * @param port the port * @return true if the conversion was successful, false if unknown address family */ - CoreExport int satoap(const irc::sockets::sockaddrs* sa, std::string& addr, int &port); + CoreExport bool satoap(const irc::sockets::sockaddrs* sa, std::string& addr, int &port); } } diff --git a/src/socket.cpp b/src/socket.cpp index d8e710d56..092751ec8 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -211,7 +211,7 @@ int InspIRCd::BindPorts(FailedPortList &failed_ports) return bound; } -int irc::sockets::aptosa(const char* addr, int port, irc::sockets::sockaddrs* sa) +bool irc::sockets::aptosa(const char* addr, int port, irc::sockets::sockaddrs* sa) { memset(sa, 0, sizeof(*sa)); if (!addr || !*addr) @@ -240,7 +240,7 @@ int irc::sockets::aptosa(const char* addr, int port, irc::sockets::sockaddrs* sa return false; } -int irc::sockets::satoap(const irc::sockets::sockaddrs* sa, std::string& addr, int &port) { +bool irc::sockets::satoap(const irc::sockets::sockaddrs* sa, std::string& addr, int &port) { char addrv[INET6_ADDRSTRLEN+1]; if (sa->sa.sa_family == AF_INET) { |