Move scsi_command_size from winescsi.h to SCSI_Fix_CMD_LEN(), its only

user.
This commit is contained in:
Gerald Pfeifer 2003-11-09 00:31:08 +00:00 committed by Alexandre Julliard
parent 6c7d5f500a
commit 56b0939efe
2 changed files with 7 additions and 7 deletions

View file

@ -306,6 +306,13 @@ linux_hack:
void
SCSI_Fix_CMD_LEN(int fd, int cmd, int len)
{
/* This is what the linux kernel thinks.... */
static const unsigned char scsi_command_size[8] =
{
6, 10, 10, 12,
12, 12, 10, 10
};
int index=(cmd>>5)&7;
if (len!=scsi_command_size[index])

View file

@ -26,13 +26,6 @@
#define SG_NEXT_CMD_LEN 0x2283 /* override SCSI command length with given
number on the next write() on this file descriptor */
/* This is what the linux kernel thinks.... */
static const unsigned char scsi_command_size[8] =
{
6, 10, 10, 12,
12, 12, 10, 10
};
struct sg_header
{
int pack_len; /* [o] reply_len (ie useless), ignored as input */