mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-15 15:16:52 +02:00
Problem: unnecessary non-const variables
Solution: add const
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user