diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-07 03:02:26 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-07 03:02:26 +0000 |
commit | 891adbd6fce978d3313459712e28b41185e8368c (patch) | |
tree | 2f35006954c08f38cb8d11c95a73904901297103 /ace/Connector.cpp | |
parent | 8d0fb9f8f164734703f9d939a21596cf7c6f7552 (diff) | |
download | ATCD-891adbd6fce978d3313459712e28b41185e8368c.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Connector.cpp')
-rw-r--r-- | ace/Connector.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/ace/Connector.cpp b/ace/Connector.cpp index 18da7ff955e..57cef845384 100644 --- a/ace/Connector.cpp +++ b/ace/Connector.cpp @@ -401,26 +401,25 @@ ACE_Connector<SH, PR_CO_2>::connect_n (size_t n, char failed_svc_handlers[], const ACE_Synch_Options &synch_options) { - int status = 0; // Set to -1 if an error occurs - size_t i; + int result = 0; - for (i = 0; i < n; i++) + for (size_t i = 0; i < n; i++) { if (this->connect (sh[i], remote_addrs[i], synch_options) == -1 && !(synch_options[ACE_Synch_Options::USE_REACTOR] && errno == EWOULDBLOCK)) { - status = -1; + result = -1; if (failed_svc_handlers != 0) // Mark this entry as having failed. failed_svc_handlers[i] = 1; } - else if (failed_svc_handlers != 0) - // Mark this entry as having succeeded. - failed_svc_handlers[i] = 0; + else if (failed_svc_handlers != 0) + // Mark this entry as having succeeded. + failed_svc_handlers[i] = 0; } - return status; + return result; } // Cancel a <svc_handler> that was started asynchronously. |