From 16b8e22615e6b3351b47d13e0540600fa590d0cb Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 1 Sep 2009 15:08:30 +0000 Subject: Use a bool return type for boolean return git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11585 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3