diff options
author | eihrul <eihrul> | 2004-11-23 16:23:36 +0000 |
---|---|---|
committer | eihrul <eihrul> | 2004-11-23 16:23:36 +0000 |
commit | d0764152e4dbeaef56c60389257258f557a73947 (patch) | |
tree | 04c42f94893e8abb75d1215b178047ee06df9eeb /win32.c | |
parent | 8b475848f12c984f86f52d0993ec3ab8a986e9d6 (diff) | |
download | enet-d0764152e4dbeaef56c60389257258f557a73947.tar.gz enet-d0764152e4dbeaef56c60389257258f557a73947.zip |
win32 bug fixes
Diffstat (limited to 'win32.c')
-rw-r--r-- | win32.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -88,7 +88,7 @@ ENetSocket enet_socket_create (ENetSocketType type, const ENetAddress * address) { ENetSocket newSocket = socket (PF_INET, type == ENET_SOCKET_TYPE_DATAGRAM ? SOCK_DGRAM : SOCK_STREAM, 0); - int nonBlocking = 1, + u_long nonBlocking = 1, receiveBufferSize = ENET_HOST_RECEIVE_BUFFER_SIZE; struct sockaddr_in sin; @@ -216,8 +216,8 @@ enet_socket_receive (ENetSocket socket, ENetBuffer * buffers, size_t bufferCount) { - DWORD sinLength = sizeof (struct sockaddr_in), - flags = 0, + INT sinLength = sizeof (struct sockaddr_in); + DWORD flags = 0, recvLength; struct sockaddr_in sin; |