Commit 0b32e99a authored by Eric Cano's avatar Eric Cano
Browse files

Fixed typo in struct member name.

parent 459852fd
......@@ -328,7 +328,7 @@ namespace SCSI {
unsigned char reserved[5]; // Reserved
// bytes 7-8
unsigned char allocationLenght[2] ; // used for EXTENDENT FORM
unsigned char allocationLength[2] ; // used for EXTENDENT FORM
// byte 9
unsigned char control; // Control byte
......
......@@ -314,9 +314,9 @@ namespace unitTests {
buff[2] |= 0xFF; buff[3] = 0xFF; buff[4] = 0xFF; buff[5] = 0xFF; buff[6] = 0xFF;
ASSERT_EQ(0, castor::tape::SCSI::Structures::toU16(readPositionCDB.allocationLenght));
ASSERT_EQ(0, castor::tape::SCSI::Structures::toU16(readPositionCDB.allocationLength));
buff[7] |= 0x0A;buff[8] |= 0xBC;
ASSERT_EQ(0x0ABC, castor::tape::SCSI::Structures::toU16(readPositionCDB.allocationLenght));
ASSERT_EQ(0x0ABC, castor::tape::SCSI::Structures::toU16(readPositionCDB.allocationLength));
ASSERT_EQ(0, readPositionCDB.control);
buff[9] |= 0xBC;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment