Skip to content

Commit

Permalink
Refs #20313: Uncrustify
Browse files Browse the repository at this point in the history
Signed-off-by: Jesus Perez <jesusperez@eprosima.com>
  • Loading branch information
jepemi committed Feb 1, 2024
1 parent b8c263b commit 2fd7a0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/cpp/rtps/transport/TCPTransportInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -760,10 +760,10 @@ bool TCPTransportInterface::OpenOutputChannel(
if (!initial_peers_.empty())
{
if (std::find(initial_peers_.begin(), initial_peers_.end(),
physical_locator) == initial_peers_.end())
physical_locator) == initial_peers_.end())
{
// Maybe as WAN?
if(IPLocator::hasWan(physical_locator) && (std::find(initial_peers_.begin(), initial_peers_.end(),
if (IPLocator::hasWan(physical_locator) && (std::find(initial_peers_.begin(), initial_peers_.end(),
IPLocator::WanToLanLocator(physical_locator)) == initial_peers_.end()))
{
// Locator not found in initial peers list.
Expand Down
6 changes: 3 additions & 3 deletions test/blackbox/common/BlackboxTestsTransportTCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -910,12 +910,12 @@ TEST(TransportTCP, TCPv4_multiple_listening_ports)
client->disable_builtin_transport().add_user_transport_to_pparams(client_transport);
Locator_t initialPeerLocator;
initialPeerLocator.kind = LOCATOR_KIND_TCPv4;
IPLocator::setIPv4(initialPeerLocator, 127,0,0,1);
IPLocator::setIPv4(initialPeerLocator, 127, 0, 0, 1);
initialPeerLocator.port = server_port_used;
LocatorList_t initial_peer_list;
initial_peer_list.push_back(initialPeerLocator);
client->initial_peers(initial_peer_list);
client->init();
client->init();
ASSERT_TRUE(client->isInitialized());

// Wait for discovery. OpenOutputChannel() is called.
Expand Down Expand Up @@ -979,7 +979,7 @@ TEST(TransportTCP, TCPv6_multiple_listening_ports)
LocatorList_t initial_peer_list;
initial_peer_list.push_back(initialPeerLocator);
client->initial_peers(initial_peer_list);
client->init();
client->init();
ASSERT_TRUE(client->isInitialized());

// Wait for discovery. OpenOutputChannel() is called.
Expand Down

0 comments on commit 2fd7a0e

Please sign in to comment.