Skip to content
Snippets Groups Projects
Commit c1bf041f authored by knan's avatar knan
Browse files

Fix bogusness and comment the fact that the function is unused

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@296 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent acb6f584
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@
#include <scsi/scsi.h>
#include "scsicmds.h"
const char *CVSid3="$Id: scsicmds.c,v 1.13 2002/11/17 05:30:11 ballen4705 Exp $" CVSID4;
const char *CVSid3="$Id: scsicmds.c,v 1.14 2002/11/21 16:34:04 knan Exp $" CVSID4;
UINT8 logsense (int device, UINT8 pagenum, UINT8 *pBuf)
......@@ -261,6 +261,7 @@ UINT8 stdinquiry ( int device, UINT8 *pBuf)
/* Still unused */
UINT8 inquiry ( int device, UINT8 pagenum, UINT8 *pBuf)
{
......@@ -286,8 +287,7 @@ UINT8 inquiry ( int device, UINT8 pagenum, UINT8 *pBuf)
ioctlhdr->cdb[5] = 0x00;
status = ioctl( device, 6 , &tBuf);
/*status = ioctl( device, 1 , &tBuf);*/
status = ioctl( device, 1 , &tBuf);
memcpy ( pBuf, &tBuf[8], 255);
......
......@@ -33,7 +33,7 @@
#include <scsi/scsi.h>
#include "scsicmds.h"
const char *CVSid3="$Id: scsicmds.cpp,v 1.13 2002/11/17 05:30:11 ballen4705 Exp $" CVSID4;
const char *CVSid3="$Id: scsicmds.cpp,v 1.14 2002/11/21 16:34:04 knan Exp $" CVSID4;
UINT8 logsense (int device, UINT8 pagenum, UINT8 *pBuf)
......@@ -261,6 +261,7 @@ UINT8 stdinquiry ( int device, UINT8 *pBuf)
/* Still unused */
UINT8 inquiry ( int device, UINT8 pagenum, UINT8 *pBuf)
{
......@@ -286,8 +287,7 @@ UINT8 inquiry ( int device, UINT8 pagenum, UINT8 *pBuf)
ioctlhdr->cdb[5] = 0x00;
status = ioctl( device, 6 , &tBuf);
/*status = ioctl( device, 1 , &tBuf);*/
status = ioctl( device, 1 , &tBuf);
memcpy ( pBuf, &tBuf[8], 255);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment