Skip to content

Commit

Permalink
Merge pull request #2211 from jwillemsen/jwi-sockdgram2
Browse files Browse the repository at this point in the history
Const/layout changes
  • Loading branch information
jwillemsen authored Apr 2, 2024
2 parents 28b4369 + ac2dff7 commit 7add19f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ACE/ace/SOCK_Dgram_Mcast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -564,17 +564,13 @@ ACE_SOCK_Dgram_Mcast::subscribe_i (const ACE_INET_Addr &mcast_addr,

// Open the socket IFF this is the first ::subscribe and ::open
// was not explicitly invoked.
if (this->open (mcast_addr,
net_if,
reuse_addr) == -1)
if (this->open (mcast_addr, net_if, reuse_addr) == -1)
return -1;

// Only do this if net_if == 0, i.e., INADDR_ANY
if (net_if == 0)
{
int result = this->subscribe_ifs (mcast_addr,
net_if,
reuse_addr);
int const result = this->subscribe_ifs (mcast_addr, net_if, reuse_addr);
// Check for error or "short-circuit" return.
if (result != 0)
return result;
Expand Down

0 comments on commit 7add19f

Please sign in to comment.