summaryrefslogtreecommitdiff
path: root/zen/socket.h
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-05-12 16:34:13 -0400
committerB Stack <bgstack15@gmail.com>2019-05-12 16:34:13 -0400
commitf43972d665c95b2148636c86a5b648e719901101 (patch)
treeb873b15f50a981aacf8bb49fd646bfded2e7a73b /zen/socket.h
parentMerge branch '10.11' into 'master' (diff)
downloadFreeFileSync-f43972d665c95b2148636c86a5b648e719901101.tar.gz
FreeFileSync-f43972d665c95b2148636c86a5b648e719901101.tar.bz2
FreeFileSync-f43972d665c95b2148636c86a5b648e719901101.zip
10.12
Diffstat (limited to 'zen/socket.h')
-rw-r--r--zen/socket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zen/socket.h b/zen/socket.h
index c77a4084..0b4c823d 100644
--- a/zen/socket.h
+++ b/zen/socket.h
@@ -46,7 +46,7 @@ public:
if (!servinfo)
throw SysError(L"getaddrinfo: empty server info");
- auto getConnectedSocket = [&](const auto& /*::addrinfo*/ ai)
+ const auto getConnectedSocket = [](const auto& /*::addrinfo*/ ai)
{
SocketType testSocket = ::socket(ai.ai_family, ai.ai_socktype, ai.ai_protocol);
if (testSocket == invalidSocket)
bgstack15