summaryrefslogtreecommitdiff
path: root/src/socketengines
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-14 21:14:36 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-14 21:14:36 +0000
commitf209cce90b394acd26e22eacef0bff61e8f5b4e1 (patch)
tree28374af9d5fc3db87f66477493dc9569d809f518 /src/socketengines
parent60ab529ad481d5727991901ab0252d84164ccdc0 (diff)
Nuke trailing spaces
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11105 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengines')
-rw-r--r--src/socketengines/socketengine_iocp.cpp14
-rw-r--r--src/socketengines/socketengine_kqueue.cpp2
2 files changed, 7 insertions, 9 deletions
diff --git a/src/socketengines/socketengine_iocp.cpp b/src/socketengines/socketengine_iocp.cpp
index 7dce02dbd..6425d5fca 100644
--- a/src/socketengines/socketengine_iocp.cpp
+++ b/src/socketengines/socketengine_iocp.cpp
@@ -166,7 +166,7 @@ bool IOCPEngine::DelFd(EventHandler* eh, bool force /* = false */)
/* decrement set size */
--CurrentSetSize;
-
+
/* success */
return true;
}
@@ -175,7 +175,7 @@ void IOCPEngine::WantWrite(EventHandler* eh)
{
if (!eh)
return;
-
+
void* m_writeEvent = NULL;
int* fake_fd = NULL;
@@ -351,7 +351,7 @@ int IOCPEngine::DispatchEvents()
}
}
break;
-
+
case SOCKET_IO_EVENT_ACCEPT:
{
/* this is kinda messy.. :/ */
@@ -370,7 +370,7 @@ int IOCPEngine::DispatchEvents()
}
break;
}
-
+
delete ov;
}
@@ -464,7 +464,7 @@ int IOCPEngine::Accept(EventHandler* fd, sockaddr *addr, socklen_t *addrlen)
Overlapped* ovl = acceptevent;
accept_overlap* ov = (accept_overlap*)ovl->m_params;
-
+
//sockaddr_in* server_address = (sockaddr_in*)&ov->buf[10];
sockaddr_in* client_address = (sockaddr_in*)&ov->buf[38];
@@ -477,7 +477,7 @@ int IOCPEngine::Accept(EventHandler* fd, sockaddr *addr, socklen_t *addrlen)
int IOCPEngine::GetSockName(EventHandler* fd, sockaddr *name, socklen_t* namelen)
{
Overlapped* ovl = NULL;
-
+
if (!fd->GetExt("windows_acceptevent", ovl))
return -1;
@@ -524,5 +524,3 @@ int IOCPEngine::Close(EventHandler* fd)
{
return this->Close(fd->GetFd());
}
-
-
diff --git a/src/socketengines/socketengine_kqueue.cpp b/src/socketengines/socketengine_kqueue.cpp
index 80d73581e..76ef3851e 100644
--- a/src/socketengines/socketengine_kqueue.cpp
+++ b/src/socketengines/socketengine_kqueue.cpp
@@ -33,7 +33,7 @@ void KQueueEngine::RecoverFromFork()
/*
* The only bad thing about kqueue is that its fd cant survive a fork and is not inherited.
* BUM HATS.
- *
+ *
*/
EngineHandle = kqueue();
if (EngineHandle == -1)