From ae445f0e599fc73559248595af06c9f04189f44b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Wed, 16 Nov 2016 20:02:44 +0100 Subject: Remove an unused variable --- louloulibs/network/tcp_client_socket_handler.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/louloulibs/network/tcp_client_socket_handler.cpp b/louloulibs/network/tcp_client_socket_handler.cpp index 2e90ea1..7f21e3f 100644 --- a/louloulibs/network/tcp_client_socket_handler.cpp +++ b/louloulibs/network/tcp_client_socket_handler.cpp @@ -43,10 +43,9 @@ void TCPClientSocketHandler::init_socket(const struct addrinfo* rp) { utils::ScopeGuard sg([result](){ freeaddrinfo(result); }); struct addrinfo* rp; - int bind_error = 0; for (rp = result; rp; rp = rp->ai_next) { - if ((bind_error = ::bind(this->socket, + if ((::bind(this->socket, reinterpret_cast(rp->ai_addr), rp->ai_addrlen)) == 0) break; -- cgit v1.2.3