diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-01 15:08:30 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-01 15:08:30 +0000 |
commit | 16b8e22615e6b3351b47d13e0540600fa590d0cb (patch) | |
tree | b98c6a8647ea0e0668a88d3afe293a09a477cc19 /src/socket.cpp | |
parent | f3515fa3a48f28890d14032df9336dd6ee473e56 (diff) |
Use a bool return type for boolean return
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11585 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
-rw-r--r-- | src/socket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |