From c1bf041ff37d6e8fe00aa659ee4abc872668d7a5 Mon Sep 17 00:00:00 2001 From: knan <knan@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Thu, 21 Nov 2002 16:34:04 +0000 Subject: [PATCH] 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 --- sm5/scsicmds.c | 6 +++--- sm5/scsicmds.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sm5/scsicmds.c b/sm5/scsicmds.c index 66462133f..f96c334e7 100644 --- a/sm5/scsicmds.c +++ b/sm5/scsicmds.c @@ -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); diff --git a/sm5/scsicmds.cpp b/sm5/scsicmds.cpp index 8afc8cba7..286d5115d 100644 --- a/sm5/scsicmds.cpp +++ b/sm5/scsicmds.cpp @@ -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); -- GitLab