medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit c85a9b43d527b98717233069d762dbeb34877267
parent 701a7f2a1f2d6169b4a600004c227f9555858527
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Jan 22 14:11:12 +0200

Take 3

Diffstat:
platform_network.h | 2+-
win32_network.h | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/platform_network.h b/platform_network.h @@ -72,5 +72,5 @@ inline void sock_destroy( Socket * sock ) { if( ok == -1 ) { FATAL( "closesocket" ); } - sock->fd = -1; + sock->fd = INVALID_SOCKET; } diff --git a/win32_network.h b/win32_network.h @@ -26,7 +26,7 @@ inline void net_term() { } } -inline void sock_fd_nonblocking( int fd ) { +inline void sock_fd_nonblocking( SOCKET fd ) { u_long one = 1; int ok = ioctlsocket( fd, FIONBIO, &one ); if( ok == SOCKET_ERROR ) {