Commit 5c17a0b0 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

httpapi/tests: Assign to correct type (Coverity).

parent aa88c5d6
...@@ -74,7 +74,7 @@ static const char simple_req[] = ...@@ -74,7 +74,7 @@ static const char simple_req[] =
"User-Agent: WINE\r\n" "User-Agent: WINE\r\n"
"\r\n"; "\r\n";
static int create_client_socket(void) static SOCKET create_client_socket(void)
{ {
struct sockaddr_in sockaddr = struct sockaddr_in sockaddr =
{ {
...@@ -82,7 +82,7 @@ static int create_client_socket(void) ...@@ -82,7 +82,7 @@ static int create_client_socket(void)
.sin_port = htons(50000), .sin_port = htons(50000),
.sin_addr.S_un.S_addr = inet_addr("127.0.0.1"), .sin_addr.S_un.S_addr = inet_addr("127.0.0.1"),
}; };
int s = socket(AF_INET, SOCK_STREAM, 0), ret; SOCKET s = socket(AF_INET, SOCK_STREAM, 0), ret;
ret = connect(s, (struct sockaddr *)&sockaddr, sizeof(sockaddr)); ret = connect(s, (struct sockaddr *)&sockaddr, sizeof(sockaddr));
ok(!ret, "Failed to connect socket, error %u.\n", GetLastError()); ok(!ret, "Failed to connect socket, error %u.\n", GetLastError());
return s; return s;
......
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