aboutsummaryrefslogtreecommitdiff
path: root/src/compat.h
diff options
context:
space:
mode:
authorDag Robole <dag.robole@gmail.com>2017-07-18 16:24:46 +0200
committerDag Robole <dag.robole@gmail.com>2017-07-22 09:11:55 +0200
commit05e023f2ec8d8dc37bb0f20db1c606f06aea69f5 (patch)
tree5b54cc8b64fef391f266edc3d9833a6d98277030 /src/compat.h
parent7b6e8bc4424006119dc537699c8b3b3121e0b3c3 (diff)
downloadbitcoin-05e023f2ec8d8dc37bb0f20db1c606f06aea69f5.tar.xz
Move CloseSocket out of SetSocketNonBlocking and pass SOCKET by const reference in SetSocket* functions
Diffstat (limited to 'src/compat.h')
-rw-r--r--src/compat.h2
1 files changed, 1 insertions, 1 deletions
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