summaryrefslogtreecommitdiff
path: root/src/common
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
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')
-rw-r--r--src/common/mmo.h3
-rw-r--r--src/common/socket.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h
index d7d0820b3..04daedca0 100644
--- a/src/common/mmo.h
+++ b/src/common/mmo.h
@@ -360,7 +360,7 @@ struct item {
char favorite;
unsigned char bound;
uint64 unique_id;
-
+
struct {
int16 index;
int16 value;
@@ -899,7 +899,6 @@ struct rodex_message {
struct {
struct item item;
int idx;
-
} items[RODEX_MAX_ITEM];
int64 zeny;
uint8 type;
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);