summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Simpson <simpsont@objectcomputing.com>2021-05-14 09:00:59 -0500
committerTimothy Simpson <simpsont@objectcomputing.com>2021-05-14 09:00:59 -0500
commitbd42ac334e90816ed0a8778b9e45c1cc9d1b2447 (patch)
treea7ca7d99e3dc87464550b49a0aef22c9ba3f129d
parenteef33151c45ae1826b346c0acbb03fca2f843cf6 (diff)
downloadATCD-bd42ac334e90816ed0a8778b9e45c1cc9d1b2447.tar.gz
since we're not returning the value of recursing, switch to bool
-rw-r--r--ACE/ace/Sock_Connect.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ACE/ace/Sock_Connect.cpp b/ACE/ace/Sock_Connect.cpp
index 2fb0da0ffa1..f76d137b311 100644
--- a/ACE/ace/Sock_Connect.cpp
+++ b/ACE/ace/Sock_Connect.cpp
@@ -1473,7 +1473,7 @@ ip_check (int &ipvn_enabled, int pf)
{
#if defined (ACE_WIN32)
- static int recursing = 0;
+ static bool recursing = false;
if (recursing) return 1;
// as of the release of Windows 2008, even hosts that have IPv6 interfaces disabled
@@ -1484,9 +1484,9 @@ ip_check (int &ipvn_enabled, int pf)
size_t if_cnt = 0;
// assume enabled to avoid recursion during interface lookup.
- recursing = 1;
+ recursing = true;
ACE::get_ip_interfaces (if_cnt, if_addrs);
- recursing = 0;
+ recursing = false;
bool found = false;
for (size_t i = 0; !found && i < if_cnt; i++)