summaryrefslogtreecommitdiff
path: root/src/common/socket.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-02-07 04:13:05 +0100
committerHaru <haru@dotalux.com>2018-02-10 01:23:16 +0100
commit952df452e7ac9a62c9bc2db3e26958649270f2f4 (patch)
tree6f653c6c829db2451dc20f13e0ab51f2b943d3e0 /src/common/socket.c
parentba28b56a6b3180c7d13c196ecb44fddd3d63a4f6 (diff)
downloadhercules-952df452e7ac9a62c9bc2db3e26958649270f2f4.tar.gz
hercules-952df452e7ac9a62c9bc2db3e26958649270f2f4.tar.bz2
hercules-952df452e7ac9a62c9bc2db3e26958649270f2f4.tar.xz
hercules-952df452e7ac9a62c9bc2db3e26958649270f2f4.zip
Clean up trailing whitespace and non-indent tabs
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/socket.c')
-rw-r--r--src/common/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/socket.c b/src/common/socket.c
index d4b8bb43f..c74cd4661 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -1537,7 +1537,7 @@ void socket_close(int fd)
// Epoll based Event Dispatcher
epevent.data.fd = fd;
epevent.events = EPOLLIN;
- epoll_ctl(epfd, EPOLL_CTL_DEL, fd, &epevent); // removing the socket from epoll when it's being closed is not required but recommended
+ epoll_ctl(epfd, EPOLL_CTL_DEL, fd, &epevent); // removing the socket from epoll when it's being closed is not required but recommended
#endif // SOCKET_EPOLL
sShutdown(fd, SHUT_RDWR); // Disallow further reads/writes
@@ -1694,7 +1694,7 @@ void socket_init(void)
#else // SOCKET_EPOLL
// Epoll based Event Dispatcher:
- epfd = epoll_create(FD_SETSIZE); // 2.6.8 or newer ignores the expected socket amount argument
+ epfd = epoll_create(FD_SETSIZE); // 2.6.8 or newer ignores the expected socket amount argument
if(epfd == SOCKET_ERROR){
ShowError("Failed to Create Epoll Event Dispatcher: %s\n", error_msg());
exit(EXIT_FAILURE);