Move CloseSocket out of SetSocketNonBlocking and pass SOCKET by const reference in SetSocket* functions

This commit is contained in:
Dag Robole
2017-07-18 16:24:46 +02:00
parent 7b6e8bc442
commit 05e023f2ec
4 changed files with 10 additions and 9 deletions

View File

@@ -76,7 +76,7 @@ typedef unsigned int SOCKET;
size_t strnlen( const char *start, size_t max_len);
#endif // HAVE_DECL_STRNLEN
bool static inline IsSelectableSocket(SOCKET s) {
bool static inline IsSelectableSocket(const SOCKET& s) {
#ifdef WIN32
return true;
#else