summaryrefslogtreecommitdiff
path: root/louloulibs/network
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-11-16 20:02:44 +0100
committerlouiz’ <louiz@louiz.org>2016-11-16 20:02:44 +0100
commitae445f0e599fc73559248595af06c9f04189f44b (patch)
treece5d52a83396fd24e2a9c3ce04317f939087a142 /louloulibs/network
parent4ab3cd653f3eb19ff82838f777984c9d16e64a80 (diff)
downloadbiboumi-ae445f0e599fc73559248595af06c9f04189f44b.tar.gz
biboumi-ae445f0e599fc73559248595af06c9f04189f44b.tar.bz2
biboumi-ae445f0e599fc73559248595af06c9f04189f44b.tar.xz
biboumi-ae445f0e599fc73559248595af06c9f04189f44b.zip
Remove an unused variable
Diffstat (limited to 'louloulibs/network')
-rw-r--r--louloulibs/network/tcp_client_socket_handler.cpp3
1 files changed, 1 insertions, 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<const struct sockaddr*>(rp->ai_addr),
rp->ai_addrlen)) == 0)
break;