mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-30 05:29:43 +01:00
Fix some of the -Wshadows
This commit is contained in:
committed by
Matt Arsenault
parent
14d3245e02
commit
1ffc5d11dc
@@ -320,13 +320,13 @@ int zmq::options_t::setsockopt (int option_, const void *optval_,
|
||||
else {
|
||||
std::string filter_str ((const char*) optval_, optvallen_);
|
||||
|
||||
tcp_address_mask_t filter;
|
||||
int rc = filter.resolve (filter_str.c_str (), ipv4only ? true : false);
|
||||
tcp_address_mask_t mask;
|
||||
int rc = mask.resolve (filter_str.c_str (), ipv4only ? true : false);
|
||||
if (rc != 0) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
tcp_accept_filters.push_back(filter);
|
||||
tcp_accept_filters.push_back(mask);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user