Commit 5274f855 authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

ws2_32/tests: Use BOOL type where appropriate.

parent 0b58ab7a
...@@ -1382,7 +1382,8 @@ static void test_ip_pktinfo(void) ...@@ -1382,7 +1382,8 @@ static void test_ip_pktinfo(void)
struct sockaddr_in s1addr, s2addr, s3addr; struct sockaddr_in s1addr, s2addr, s3addr;
GUID WSARecvMsg_GUID = WSAID_WSARECVMSG; GUID WSARecvMsg_GUID = WSAID_WSARECVMSG;
LPFN_WSARECVMSG pWSARecvMsg = NULL; LPFN_WSARECVMSG pWSARecvMsg = NULL;
unsigned int rc, foundhdr, yes = 1; unsigned int rc, yes = 1;
BOOL foundhdr;
DWORD dwBytes, dwSize, dwFlags; DWORD dwBytes, dwSize, dwFlags;
socklen_t addrlen; socklen_t addrlen;
WSACMSGHDR *cmsg; WSACMSGHDR *cmsg;
...@@ -3836,7 +3837,7 @@ static void test_ioctlsocket(void) ...@@ -3836,7 +3837,7 @@ static void test_ioctlsocket(void)
closesocket(sock); closesocket(sock);
} }
static int drain_pause=0; static BOOL drain_pause = FALSE;
static DWORD WINAPI drain_socket_thread(LPVOID arg) static DWORD WINAPI drain_socket_thread(LPVOID arg)
{ {
char buffer[1024]; char buffer[1024];
...@@ -4664,12 +4665,12 @@ static void test_events(int useMessages) ...@@ -4664,12 +4665,12 @@ static void test_events(int useMessages)
* take some of it, and we will get a short write. This will trigger * take some of it, and we will get a short write. This will trigger
* another FD_WRITE event as soon as data is sent and more space becomes * another FD_WRITE event as soon as data is sent and more space becomes
* available, but not any earlier. */ * available, but not any earlier. */
drain_pause=1; drain_pause = TRUE;
do do
{ {
ret = send(src, buffer, bufferSize, 0); ret = send(src, buffer, bufferSize, 0);
} while (ret == bufferSize); } while (ret == bufferSize);
drain_pause=0; drain_pause = FALSE;
if (ret >= 0 || WSAGetLastError() == WSAEWOULDBLOCK) if (ret >= 0 || WSAGetLastError() == WSAEWOULDBLOCK)
{ {
Sleep(400); /* win9x */ Sleep(400); /* win9x */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment