Skip to content

Commit

Permalink
Fix Sonar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Jan 2, 2025
1 parent 5a87066 commit 6720ab7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/devices/daynaport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ void DaynaPort::SetMcastAddr() const
// seconds
//
//---------------------------------------------------------------------------
void DaynaPort::EnableInterface()
void DaynaPort::EnableInterface() const
{
if (GetCdbByte(5) & 0x80) {
if (const string &error = TapDriver::IpLink(true, GetLogger()); !error.empty()) {
Expand Down
2 changes: 1 addition & 1 deletion cpp/devices/daynaport.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class DaynaPort : public PrimaryDevice
void RetrieveStats() const;
void SetInterfaceMode() const;
void SetMcastAddr() const;
void EnableInterface();
void EnableInterface() const;

vector<PbStatistics> GetStatistics() const override;

Expand Down

0 comments on commit 6720ab7

Please sign in to comment.