diff options
author | rubidium <rubidium@openttd.org> | 2007-02-11 13:39:23 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-02-11 13:39:23 +0000 |
commit | b71d6e14013d237feeb69367a0e978c7622a813b (patch) | |
tree | 396536898aae8bab69b1c6d42853c3e4bc99184d /src/network/core/os_abstraction.h | |
parent | 7ee3fc4979645065a6ec580c7bdbdd656e3b1090 (diff) | |
download | openttd-b71d6e14013d237feeb69367a0e978c7622a813b.tar.xz |
(svn r8673) -Codechange: use SetNonBlocking instead of implementing yet another version.
Diffstat (limited to 'src/network/core/os_abstraction.h')
-rw-r--r-- | src/network/core/os_abstraction.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/core/os_abstraction.h b/src/network/core/os_abstraction.h index c4cbcee20..00545c70f 100644 --- a/src/network/core/os_abstraction.h +++ b/src/network/core/os_abstraction.h @@ -153,7 +153,7 @@ typedef unsigned long in_addr_t; # endif #endif // __MORPHOS__ || __AMIGA__ -static inline bool SetNonBlocking(const int d) +static inline bool SetNonBlocking(SOCKET d) { #ifdef WIN32 u_long nonblocking = 1; @@ -167,7 +167,7 @@ static inline bool SetNonBlocking(const int d) #endif } -static inline bool SetNoDelay(const int d) +static inline bool SetNoDelay(SOCKET d) { /* XXX should this be done at all? */ #if !defined(BEOS_NET_SERVER) // not implemented on BeOS net_server |