/** Bind all ports specified in the configuration file.
* @return The number of ports bound without error
*/
- int BindPorts(FailedPortList &failed_ports);
+ size_t BindPorts(FailedPortList &failed_ports);
/** Find a user in the nick hash.
* If the user cant be found in the nick hash check the uuid hash
this->XLines->ApplyLines();
FailedPortList pl;
- int bounditems = BindPorts(pl);
+ size_t bounditems = BindPorts(pl);
std::cout << std::endl;
if (!pl.empty())
{
std::cout << std::endl << "WARNING: Not all your client ports could be bound -- " << std::endl << "starting anyway with " << bounditems
- << " of " << bounditems + (int)pl.size() << " client ports bound." << std::endl << std::endl;
+ << " of " << (bounditems + pl.size()) << " client ports bound." << std::endl << std::endl;
std::cout << "The following port(s) failed to bind:" << std::endl << std::endl;
int j = 1;
for (FailedPortList::iterator i = pl.begin(); i != pl.end(); i++, j++)
return true;
}
-int InspIRCd::BindPorts(FailedPortList& failed_ports)
+size_t InspIRCd::BindPorts(FailedPortList& failed_ports)
{
- int bound = 0;
+ size_t bound = 0;
std::vector<ListenSocket*> old_ports(ports.begin(), ports.end());
ConfigTagList tags = ServerInstance->Config->ConfTags("bind");