Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
0b32e99a
Commit
0b32e99a
authored
Feb 18, 2014
by
Eric Cano
Browse files
Fixed typo in struct member name.
parent
459852fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
castor/tape/tapeserver/SCSI/Structures.hpp
View file @
0b32e99a
...
...
@@ -328,7 +328,7 @@ namespace SCSI {
unsigned
char
reserved
[
5
];
// Reserved
// bytes 7-8
unsigned
char
allocationLeng
h
t
[
2
]
;
// used for EXTENDENT FORM
unsigned
char
allocationLengt
h
[
2
]
;
// used for EXTENDENT FORM
// byte 9
unsigned
char
control
;
// Control byte
...
...
castor/tape/tapeserver/SCSI/StructuresTest.cpp
View file @
0b32e99a
...
...
@@ -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
.
allocationLeng
h
t
));
ASSERT_EQ
(
0
,
castor
::
tape
::
SCSI
::
Structures
::
toU16
(
readPositionCDB
.
allocationLengt
h
));
buff
[
7
]
|=
0x0A
;
buff
[
8
]
|=
0xBC
;
ASSERT_EQ
(
0x0ABC
,
castor
::
tape
::
SCSI
::
Structures
::
toU16
(
readPositionCDB
.
allocationLeng
h
t
));
ASSERT_EQ
(
0x0ABC
,
castor
::
tape
::
SCSI
::
Structures
::
toU16
(
readPositionCDB
.
allocationLengt
h
));
ASSERT_EQ
(
0
,
readPositionCDB
.
control
);
buff
[
9
]
|=
0xBC
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment