Skip to content
Snippets Groups Projects
Commit 1060d575 authored by ballen4705's avatar ballen4705
Browse files

code janitor work: eliminated unused parameter from scsiPrintMain

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@1240 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent b5fb3ba6
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#define GBUF_SIZE 65535 #define GBUF_SIZE 65535
const char* scsiprint_c_cvsid="$Id: scsiprint.c,v 1.59 2003/11/16 12:19:04 dpgilbert Exp $" const char* scsiprint_c_cvsid="$Id: scsiprint.c,v 1.60 2003/11/16 16:59:23 ballen4705 Exp $"
EXTERN_H_CVSID SCSICMDS_H_CVSID SCSIPRINT_H_CVSID SMARTCTL_H_CVSID UTILITY_H_CVSID; EXTERN_H_CVSID SCSICMDS_H_CVSID SCSIPRINT_H_CVSID SMARTCTL_H_CVSID UTILITY_H_CVSID;
// control block which points to external global control variables // control block which points to external global control variables
...@@ -804,7 +804,7 @@ static void failuretest(int type, int returnvalue) ...@@ -804,7 +804,7 @@ static void failuretest(int type, int returnvalue)
} }
/* Main entry point used by smartctl command. Return 0 for success */ /* Main entry point used by smartctl command. Return 0 for success */
int scsiPrintMain(const char * dev_name, int fd) int scsiPrintMain(int fd)
{ {
int checkedSupportedLogPages = 0; int checkedSupportedLogPages = 0;
UINT8 peripheral_type = 0; UINT8 peripheral_type = 0;
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#define GBUF_SIZE 65535 #define GBUF_SIZE 65535
const char* scsiprint_c_cvsid="$Id: scsiprint.cpp,v 1.59 2003/11/16 12:19:04 dpgilbert Exp $" const char* scsiprint_c_cvsid="$Id: scsiprint.cpp,v 1.60 2003/11/16 16:59:23 ballen4705 Exp $"
EXTERN_H_CVSID SCSICMDS_H_CVSID SCSIPRINT_H_CVSID SMARTCTL_H_CVSID UTILITY_H_CVSID; EXTERN_H_CVSID SCSICMDS_H_CVSID SCSIPRINT_H_CVSID SMARTCTL_H_CVSID UTILITY_H_CVSID;
// control block which points to external global control variables // control block which points to external global control variables
...@@ -804,7 +804,7 @@ static void failuretest(int type, int returnvalue) ...@@ -804,7 +804,7 @@ static void failuretest(int type, int returnvalue)
} }
/* Main entry point used by smartctl command. Return 0 for success */ /* Main entry point used by smartctl command. Return 0 for success */
int scsiPrintMain(const char * dev_name, int fd) int scsiPrintMain(int fd)
{ {
int checkedSupportedLogPages = 0; int checkedSupportedLogPages = 0;
UINT8 peripheral_type = 0; UINT8 peripheral_type = 0;
......
...@@ -30,12 +30,12 @@ ...@@ -30,12 +30,12 @@
#ifndef SCSI_PRINT_H_ #ifndef SCSI_PRINT_H_
#define SCSI_PRINT_H_ #define SCSI_PRINT_H_
#define SCSIPRINT_H_CVSID "$Id: scsiprint.h,v 1.15 2003/10/12 09:10:03 ballen4705 Exp $\n" #define SCSIPRINT_H_CVSID "$Id: scsiprint.h,v 1.16 2003/11/16 16:59:23 ballen4705 Exp $\n"
// MACROS to control printing behavior (from ataprint.h) // MACROS to control printing behavior (from ataprint.h)
#define QUIETON(control) {if (control->quietmode) control->veryquietmode=0;} #define QUIETON(control) {if (control->quietmode) control->veryquietmode=0;}
#define QUIETOFF(control) {if (control->quietmode && !control->veryquietmode) control->veryquietmode=1;} #define QUIETOFF(control) {if (control->quietmode && !control->veryquietmode) control->veryquietmode=1;}
int scsiPrintMain(const char * dev_name, int fd); int scsiPrintMain(int fd);
#endif #endif
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#include "utility.h" #include "utility.h"
extern const char *atacmdnames_c_cvsid, *atacmds_c_cvsid, *ataprint_c_cvsid, *knowndrives_c_cvsid, *os_XXXX_c_cvsid, *scsicmds_c_cvsid, *scsiprint_c_cvsid, *utility_c_cvsid; extern const char *atacmdnames_c_cvsid, *atacmds_c_cvsid, *ataprint_c_cvsid, *knowndrives_c_cvsid, *os_XXXX_c_cvsid, *scsicmds_c_cvsid, *scsiprint_c_cvsid, *utility_c_cvsid;
const char* smartctl_c_cvsid="$Id: smartctl.c,v 1.104 2003/10/27 11:23:32 ballen4705 Exp $" const char* smartctl_c_cvsid="$Id: smartctl.c,v 1.105 2003/11/16 16:59:23 ballen4705 Exp $"
ATACMDS_H_CVSID ATAPRINT_H_CVSID CONFIG_H_CVSID EXTERN_H_CVSID KNOWNDRIVES_H_CVSID SCSICMDS_H_CVSID SCSIPRINT_H_CVSID SMARTCTL_H_CVSID UTILITY_H_CVSID; ATACMDS_H_CVSID ATAPRINT_H_CVSID CONFIG_H_CVSID EXTERN_H_CVSID KNOWNDRIVES_H_CVSID SCSICMDS_H_CVSID SCSIPRINT_H_CVSID SMARTCTL_H_CVSID UTILITY_H_CVSID;
// This is a block containing all the "control variables". We declare // This is a block containing all the "control variables". We declare
...@@ -836,7 +836,7 @@ int main (int argc, char **argv){ ...@@ -836,7 +836,7 @@ int main (int argc, char **argv){
if (tryata) if (tryata)
retval = ataPrintMain(fd); retval = ataPrintMain(fd);
else if (tryscsi) else if (tryscsi)
retval = scsiPrintMain(device, fd); retval = scsiPrintMain(fd);
else { else {
pout("Smartctl: specify if this is an ATA or SCSI device with the -d option.\n"); pout("Smartctl: specify if this is an ATA or SCSI device with the -d option.\n");
UsageSummary(); UsageSummary();
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#include "utility.h" #include "utility.h"
extern const char *atacmdnames_c_cvsid, *atacmds_c_cvsid, *ataprint_c_cvsid, *knowndrives_c_cvsid, *os_XXXX_c_cvsid, *scsicmds_c_cvsid, *scsiprint_c_cvsid, *utility_c_cvsid; extern const char *atacmdnames_c_cvsid, *atacmds_c_cvsid, *ataprint_c_cvsid, *knowndrives_c_cvsid, *os_XXXX_c_cvsid, *scsicmds_c_cvsid, *scsiprint_c_cvsid, *utility_c_cvsid;
const char* smartctl_c_cvsid="$Id: smartctl.cpp,v 1.104 2003/10/27 11:23:32 ballen4705 Exp $" const char* smartctl_c_cvsid="$Id: smartctl.cpp,v 1.105 2003/11/16 16:59:23 ballen4705 Exp $"
ATACMDS_H_CVSID ATAPRINT_H_CVSID CONFIG_H_CVSID EXTERN_H_CVSID KNOWNDRIVES_H_CVSID SCSICMDS_H_CVSID SCSIPRINT_H_CVSID SMARTCTL_H_CVSID UTILITY_H_CVSID; ATACMDS_H_CVSID ATAPRINT_H_CVSID CONFIG_H_CVSID EXTERN_H_CVSID KNOWNDRIVES_H_CVSID SCSICMDS_H_CVSID SCSIPRINT_H_CVSID SMARTCTL_H_CVSID UTILITY_H_CVSID;
// This is a block containing all the "control variables". We declare // This is a block containing all the "control variables". We declare
...@@ -836,7 +836,7 @@ int main (int argc, char **argv){ ...@@ -836,7 +836,7 @@ int main (int argc, char **argv){
if (tryata) if (tryata)
retval = ataPrintMain(fd); retval = ataPrintMain(fd);
else if (tryscsi) else if (tryscsi)
retval = scsiPrintMain(device, fd); retval = scsiPrintMain(fd);
else { else {
pout("Smartctl: specify if this is an ATA or SCSI device with the -d option.\n"); pout("Smartctl: specify if this is an ATA or SCSI device with the -d option.\n");
UsageSummary(); UsageSummary();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment