summaryrefslogtreecommitdiff
path: root/src/inspircd_io.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspircd_io.cpp')
-rw-r--r--src/inspircd_io.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp
index 2b5a880cb..a033f0df6 100644
--- a/src/inspircd_io.cpp
+++ b/src/inspircd_io.cpp
@@ -1027,6 +1027,7 @@ int OpenTCPSocket (void)
int BindPorts()
{
char configToken[MAXBUF], Addr[MAXBUF], Type[MAXBUF];
+ sockaddr_in client,server;
int clientportcount = 0;
for (int count = 0; count < Config->ConfValueEnum("bind",&Config->config_f); count++)
{
@@ -1043,9 +1044,9 @@ int BindPorts()
log(DEBUG,"InspIRCd: startup: read binding %s:%s [%s] from config",Addr,configToken, Type);
}
}
- portCount = clientportcount;
+ int PortCount = clientportcount;
- for (int count = 0; count < portCount; count++)
+ for (int count = 0; count < PortCount; count++)
{
if ((openSockfd[boundPortCount] = OpenTCPSocket()) == ERROR)
{
@@ -1066,7 +1067,7 @@ int BindPorts()
if (!boundPortCount)
{
log(DEFAULT,"InspIRCd: startup: no ports bound, bailing!");
- printf("\nERROR: Was not able to bind any of %lu ports! Please check your configuration.\n\n", (unsigned long)portCount);
+ printf("\nERROR: Was not able to bind any of %lu ports! Please check your configuration.\n\n", (unsigned long)PortCount);
return (ERROR);
}