diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-14 18:04:30 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-14 18:04:30 +0000 |
commit | d3c5c8cfa2cd8c9dfd83e22f35702f5fb7d9f7ac (patch) | |
tree | cdab0430377f181dcc8d8a5744dde5913a92cd75 /src/inspircd_io.cpp | |
parent | 665d01855ea1b54e48c0acdf9db44a8dbf0f3dc6 (diff) |
Fixups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2432 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd_io.cpp')
-rw-r--r-- | src/inspircd_io.cpp | 7 |
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); } |