From bd42ac334e90816ed0a8778b9e45c1cc9d1b2447 Mon Sep 17 00:00:00 2001 From: Timothy Simpson Date: Fri, 14 May 2021 09:00:59 -0500 Subject: [PATCH] since we're not returning the value of recursing, switch to bool --- ACE/ace/Sock_Connect.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ACE/ace/Sock_Connect.cpp b/ACE/ace/Sock_Connect.cpp index 2fb0da0ffa127..f76d137b311d8 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++)