mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 09:14:17 +01:00
fix warning
This commit is contained in:
parent
02f68552a4
commit
50641db2d1
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ static bool IsPortInUse(unsigned short port)
|
|||
}
|
||||
|
||||
bool in_use = false;
|
||||
if (bind(ip_sock, a->ai_addr, a->ai_addrlen) == SOCKET_ERROR)
|
||||
if (bind(ip_sock, a->ai_addr, (int)a->ai_addrlen) == SOCKET_ERROR)
|
||||
{
|
||||
DWORD last_error = WSAGetLastError();
|
||||
in_use = (last_error == WSAEADDRINUSE || last_error == WSAEACCES);
|
||||
|
|
Loading…
Add table
Reference in a new issue