From 05e023f2ec8d8dc37bb0f20db1c606f06aea69f5 Mon Sep 17 00:00:00 2001 From: Dag Robole Date: Tue, 18 Jul 2017 16:24:46 +0200 Subject: Move CloseSocket out of SetSocketNonBlocking and pass SOCKET by const reference in SetSocket* functions --- src/compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compat.h') diff --git a/src/compat.h b/src/compat.h index e76ab94c82..e022659c01 100644 --- a/src/compat.h +++ b/src/compat.h @@ -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 -- cgit v1.2.3