mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-07 05:58:45 +01:00
Problem: irregular loop conditions
Solution: use standard loop constructs and optimize some loops
This commit is contained in:
@@ -253,9 +253,10 @@ bool zmq::ipc_listener_t::filter (fd_t sock_)
|
||||
|
||||
if (!(pw = getpwuid (cred.uid)))
|
||||
return false;
|
||||
for (options_t::ipc_gid_accept_filters_t::const_iterator it =
|
||||
options.ipc_gid_accept_filters.begin ();
|
||||
it != options.ipc_gid_accept_filters.end (); it++) {
|
||||
for (options_t::ipc_gid_accept_filters_t::const_iterator
|
||||
it = options.ipc_gid_accept_filters.begin (),
|
||||
end = options.ipc_gid_accept_filters.end ();
|
||||
it != end; it++) {
|
||||
if (!(gr = getgrgid (*it)))
|
||||
continue;
|
||||
for (char **mem = gr->gr_mem; *mem; mem++) {
|
||||
|
||||
Reference in New Issue
Block a user