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:
parent
464b5b302f
commit
887851cb99
|
@ -364,7 +364,7 @@ class RAIIsocket
|
|||
{
|
||||
#ifndef _WIN32
|
||||
typedef int SOCKET;
|
||||
int closesocket(SOCKET fd)
|
||||
static int closesocket(SOCKET fd)
|
||||
{
|
||||
return close(fd);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue