Fix -Wshadow warnings in RAIIsocket::closesocket
This commit is contained in:
parent
6de7046226
commit
9c4448f78c
|
@ -155,9 +155,9 @@ struct RAIIsocket
|
|||
{
|
||||
#ifndef _WIN32
|
||||
typedef int SOCKET;
|
||||
int closesocket(SOCKET s)
|
||||
int closesocket(SOCKET fd)
|
||||
{
|
||||
return close(s);
|
||||
return close(fd);
|
||||
}
|
||||
#endif
|
||||
SOCKET s;
|
||||
|
|
Loading…
Reference in a new issue