From 4e6b84f5321154587932e5758f63280bde34b02e Mon Sep 17 00:00:00 2001 From: ultramage Date: Mon, 8 Jan 2007 16:50:54 +0000 Subject: Unimportant cleanups git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9633 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/malloc.c | 1 + src/common/socket.c | 15 ++++----------- 2 files changed, 5 insertions(+), 11 deletions(-) (limited to 'src/common') diff --git a/src/common/malloc.c b/src/common/malloc.c index fe73057ad..1417bfbec 100644 --- a/src/common/malloc.c +++ b/src/common/malloc.c @@ -651,6 +651,7 @@ static void memmgr_init (void) } #endif + /*====================================== * Initialise *-------------------------------------- diff --git a/src/common/socket.c b/src/common/socket.c index 3c8396961..6589978bb 100644 --- a/src/common/socket.c +++ b/src/common/socket.c @@ -35,6 +35,10 @@ #define S_ENOTSOCK WSAENOTSOCK #define S_EWOULDBLOCK WSAEWOULDBLOCK #define S_ECONNABORTED WSAECONNABORTED + + #define SHUT_RD SD_RECEIVE + #define SHUT_WR SD_SEND + #define SHUT_RDWR SD_BOTH #else #define SOCKET_ERROR -1 #define INVALID_SOCKET -1 @@ -56,17 +60,6 @@ #include "../common/malloc.h" #include "../common/showmsg.h" -/// shutdown() constants -#ifndef SHUT_RD -#ifdef SD_RECEIVE - #define SHUT_RD SD_RECEIVE - #define SHUT_WR SD_SEND - #define SHUT_RDWR SD_BOTH -#else - #error "Unknown socket constants, please report this to a developer" -#endif -#endif - fd_set readfds; int fd_max; time_t last_tick; -- cgit v1.2.3-70-g09d2