summaryrefslogtreecommitdiff
path: root/src/common/socket.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-02-10 03:09:33 +0100
committerGitHub <noreply@github.com>2018-02-10 03:09:33 +0100
commitc653d967508c194133d64e0c28fcc3dc0665cd77 (patch)
treeb4297f68017af291c2def0d27bd01eb87a7b09c7 /src/common/socket.c
parent6f85e399942facc69555d078c82588f95b198711 (diff)
parent40cdf84bb3ab0801ff1e000eeab6adf87cb7ac50 (diff)
downloadhercules-c653d967508c194133d64e0c28fcc3dc0665cd77.tar.gz
hercules-c653d967508c194133d64e0c28fcc3dc0665cd77.tar.bz2
hercules-c653d967508c194133d64e0c28fcc3dc0665cd77.tar.xz
hercules-c653d967508c194133d64e0c28fcc3dc0665cd77.zip
Merge pull request #1964 from MishimaHaruna/clanfix
Clanfix
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);