summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-12-09 01:34:02 +0000
committerPeter Powell <petpow@saberuk.com>2019-12-09 01:34:02 +0000
commitad50225dc3d5ce6e44a5009351a7434b7249d233 (patch)
tree02b160ea49831a6ee192ba759768a2d0266e24a3 /src/inspircd.cpp
parent350a01d60c94fbdd3c0b6361b98a77b148a35116 (diff)
Make BindPorts return size_t instead of int.
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index d0dfce2e7..384f783aa 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -530,7 +530,7 @@ InspIRCd::InspIRCd(int argc, char** argv)
this->XLines->ApplyLines();
FailedPortList pl;
- int bounditems = BindPorts(pl);
+ size_t bounditems = BindPorts(pl);
std::cout << std::endl;
@@ -542,7 +542,7 @@ InspIRCd::InspIRCd(int argc, char** argv)
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++)