Make RAIIsocket::closesocket static

It exists as a wrapper for the Windows call of the same name.  Windows
does not require an object, so neither should this method.
This commit is contained in:
Kp 2022-05-10 01:58:55 +00:00
parent 464b5b302f
commit 887851cb99

View file

@ -364,7 +364,7 @@ class RAIIsocket
{
#ifndef _WIN32
typedef int SOCKET;
int closesocket(SOCKET fd)
static int closesocket(SOCKET fd)
{
return close(fd);
}