max_blocks is unused, but value must be read to change file offset

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
Laurent Vivier 2014-05-07 02:26:12 +02:00
parent 4f3aa35240
commit bd1790c47f

View File

@ -32,6 +32,7 @@ int emile_first_set_param_scsi_extents( int fd, int drive_num, int second_offset
return EEMILE_CANNOT_READ_FIRST;
/* max_blocks = read_short((u_int16_t*)&first[1022]) / 6; */
(void)read_short((u_int16_t*)&first[1022]);
write_short((u_int16_t*)&first[1014], blocksize);
write_short((u_int16_t*)&first[1016], drive_num);