Skip to content

Commit

Permalink
Fix SonarQube issue
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Sep 25, 2023
1 parent 51da822 commit 639e82c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/devices/ctapdriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,9 @@ string CTapDriver::SetUpEth0(int socket_fd, const string& bridge_interface) cons
return "";
}

string CTapDriver::SetUpNonEth0(int socket_fd, int ip_fd, const string& inet) const
string CTapDriver::SetUpNonEth0(int socket_fd, int ip_fd, const string& d) const
{
const auto [address, netmask] = ExtractAddressAndMask(inet);
const auto [address, netmask] = ExtractAddressAndMask(d);
if (address.empty() || netmask.empty()) {
return "Error extracting inet address and netmask";
}
Expand Down

0 comments on commit 639e82c

Please sign in to comment.