Removed unused argument, replaced bool

This commit is contained in:
Uwe Seimet 2021-08-22 22:38:12 +02:00
parent 173c40799e
commit 5770e7e2db
2 changed files with 8 additions and 8 deletions

View File

@ -112,7 +112,7 @@ SCSIDaynaPort::~SCSIDaynaPort()
} }
} }
void SCSIDaynaPort::Open(const Filepath& path, BOOL attn) void SCSIDaynaPort::Open(const Filepath& path)
{ {
LOGTRACE("SCSIDaynaPort Open"); LOGTRACE("SCSIDaynaPort Open");
@ -197,7 +197,7 @@ int SCSIDaynaPort::Inquiry(const DWORD *cdb, BYTE *buffer)
int SCSIDaynaPort::Read(const DWORD *cdb, BYTE *buf, DWORD block) int SCSIDaynaPort::Read(const DWORD *cdb, BYTE *buf, DWORD block)
{ {
int rx_packet_size = 0; int rx_packet_size = 0;
BOOL send_message_to_host; bool send_message_to_host;
scsi_resp_read_t *response = (scsi_resp_read_t*)buf; scsi_resp_read_t *response = (scsi_resp_read_t*)buf;
scsi_cmd_read_6_t *command = (scsi_cmd_read_6_t*)cdb; scsi_cmd_read_6_t *command = (scsi_cmd_read_6_t*)cdb;
int read_count = 0; int read_count = 0;
@ -245,7 +245,7 @@ int SCSIDaynaPort::Read(const DWORD *cdb, BYTE *buf, DWORD block)
// This is a very basic filter to prevent unnecessary packets from // This is a very basic filter to prevent unnecessary packets from
// being sent to the SCSI initiator. // being sent to the SCSI initiator.
send_message_to_host = FALSE; send_message_to_host = false;
// The following doesn't seem to work with unicast messages. Temporarily removing the filtering // The following doesn't seem to work with unicast messages. Temporarily removing the filtering
// functionality. // functionality.
@ -253,19 +253,19 @@ int SCSIDaynaPort::Read(const DWORD *cdb, BYTE *buf, DWORD block)
/////// // DaynaPort MAC. For IP packets, the mac_address will be the first 6 bytes /////// // DaynaPort MAC. For IP packets, the mac_address will be the first 6 bytes
/////// // of the data. /////// // of the data.
/////// if (memcmp(response->data, m_mac_addr, 6) == 0) { /////// if (memcmp(response->data, m_mac_addr, 6) == 0) {
/////// send_message_to_host = TRUE; /////// send_message_to_host = true;
/////// } /////// }
/////// // Check to see if this is a broadcast message /////// // Check to see if this is a broadcast message
/////// if (memcmp(response->data, m_bcast_addr, 6) == 0) { /////// if (memcmp(response->data, m_bcast_addr, 6) == 0) {
/////// send_message_to_host = TRUE; /////// send_message_to_host = true;
/////// } /////// }
/////// // Check to see if this is an AppleTalk Message /////// // Check to see if this is an AppleTalk Message
/////// if (memcmp(response->data, m_apple_talk_addr, 6) == 0) { /////// if (memcmp(response->data, m_apple_talk_addr, 6) == 0) {
/////// send_message_to_host = TRUE; /////// send_message_to_host = true;
/////// } /////// }
send_message_to_host = TRUE; send_message_to_host = true;
// TODO: We should check to see if this message is in the multicast // TODO: We should check to see if this message is in the multicast
// configuration from SCSI command 0x0D // configuration from SCSI command 0x0D

View File

@ -59,7 +59,7 @@ public:
// Constructor // Constructor
~SCSIDaynaPort(); ~SCSIDaynaPort();
// Destructor // Destructor
void Open(const Filepath& path, BOOL attn = TRUE); void Open(const Filepath& path);
// Capture packets // Capture packets
// commands // commands