]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/socket.cpp
Fix some indenting.
[user/henk/code/inspircd.git] / src / socket.cpp
index bebaa3736856c9b6e6b0a4a013f8f122fa61fa03..465f8cc733c53a3e8a9a228e8dce27eb2741e5e5 100644 (file)
@@ -93,10 +93,10 @@ void ListenSocket::HandleEvent(EventType e, int err)
        switch (e)
        {
                case EVENT_ERROR:
-                       ServerInstance->Logs->Log("SOCKET",DEBUG,"HandleEvent for listensocket GOT AN ERROR! well shit! '%s'", strerror(err));
+                       ServerInstance->Logs->Log("SOCKET",DEFAULT,"ListenSocket::HandleEvent() received a socket engine error event! well shit! '%s'", strerror(err));
                break;
                case EVENT_WRITE:
-                       ServerInstance->Logs->Log("SOCKET",DEBUG,"*** BUG *** HandleEvent for listensocket got a WRITE event!!!");
+                       ServerInstance->Logs->Log("SOCKET",DEBUG,"*** BUG *** ListenSocket::HandleEvent() got a WRITE event!!!");
                break;
                case EVENT_READ:
                {
@@ -117,7 +117,6 @@ void ListenSocket::HandleEvent(EventType e, int err)
                                length = sizeof(sockaddr_in);
                        }
 
-                       ServerInstance->Logs->Log("SOCKET",DEBUG,"Call to accept with client=%08lx, length=%d", client, length);
                        incomingSockfd = ServerInstance->SE->Accept(this, (sockaddr*)client, &length);
 
                        if ((incomingSockfd > -1) && (!ServerInstance->SE->GetSockName(this, sock_us, &uslen)))
@@ -511,7 +510,7 @@ int InspIRCd::BindPorts(bool, int &ports_found, FailedPortList &failed_ports)
                {
                        irc::portparser portrange(configToken, false);
                        int portno = -1;
-                       while ((portno = portrange.GetToken()))
+                       while (0 != (portno = portrange.GetToken()))
                        {
                                if (*Addr == '*')
                                        *Addr = 0;
@@ -584,3 +583,4 @@ int irc::sockets::insp_aton(const char* a, insp_inaddr* n)
        return inet_pton(AF_FAMILY, a, n);
 }
 
+