Problem: unnecessary non-const variables

Solution: add const
This commit is contained in:
Simon Giesecke
2018-05-18 18:05:25 +02:00
parent d6952ded71
commit 440be28d7e
7 changed files with 23 additions and 17 deletions

View File

@@ -262,7 +262,7 @@ int zmq::tcp_connecter_t::open ()
return -1;
}
zmq_assert (addr->resolved.tcp_addr != NULL);
tcp_address_t *const tcp_addr = addr->resolved.tcp_addr;
const tcp_address_t *const tcp_addr = addr->resolved.tcp_addr;
// Create the socket.
s = open_socket (tcp_addr->family (), SOCK_STREAM, IPPROTO_TCP);