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 7, 2023
1 parent b03a74d commit a8114fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/devices/scsi_host_bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ void SCSIBR::GetPacketBuf(vector<uint8_t>& buf, int index)
packet_enable = false;
}

void SCSIBR::SendPacket(span<const uint8_t> buf, int len)
void SCSIBR::SendPacket(span<const uint8_t> buf, int len) const
{
tap.Send(buf.data(), len);
}
Expand Down
2 changes: 1 addition & 1 deletion cpp/devices/scsi_host_bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class SCSIBR : public PrimaryDevice, public ByteWriter
void SetMacAddr(span<const uint8_t>); // Set MAC address
void ReceivePacket(); // Receive a packet
void GetPacketBuf(vector<uint8_t>&, int); // Get a packet
void SendPacket(span<const uint8_t>, int); // Send a packet
void SendPacket(span<const uint8_t>, int) const; // Send a packet

CTapDriver tap; // TAP driver
bool m_bTapEnable = false; // TAP valid flag
Expand Down

0 comments on commit a8114fc

Please sign in to comment.