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

Add default branch to switch statement

parent 0df79d12
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ extern const char *os_solaris_ata_s_cvsid; ...@@ -51,7 +51,7 @@ extern const char *os_solaris_ata_s_cvsid;
extern const char *int64_vc6_c_cvsid; extern const char *int64_vc6_c_cvsid;
#endif #endif
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.134.2.2 2004/08/17 00:06:18 ballen4705 Exp $" const char* smartctl_c_cvsid="$Id: smartctl.cpp,v 1.134.2.3 2004/08/17 16:17:25 ballen4705 Exp $"
ATACMDS_H_CVSID ATAPRINT_H_CVSID CONFIG_H_CVSID EXTERN_H_CVSID INT64_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 INT64_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
...@@ -872,20 +872,18 @@ int main (int argc, char **argv){ ...@@ -872,20 +872,18 @@ int main (int argc, char **argv){
// now call appropriate ATA or SCSI routine // now call appropriate ATA or SCSI routine
switch (con->controller_type) { switch (con->controller_type) {
case CONTROLLER_ATA: case CONTROLLER_UNKNOWN:
case CONTROLLER_3WARE_678K: // we should never fall into this branch!
case CONTROLLER_3WARE_9000_CHAR: pout("Smartctl: please specify device type with the -d option.\n");
case CONTROLLER_3WARE_678K_CHAR: UsageSummary();
case CONTROLLER_MARVELL_SATA: retval = FAILCMD;
retval = ataPrintMain(fd);
break; break;
case CONTROLLER_SCSI: case CONTROLLER_SCSI:
retval = scsiPrintMain(fd); retval = scsiPrintMain(fd);
break; break;
default: default:
pout("Smartctl: please specify device type with the -d option.\n"); retval = ataPrintMain(fd);
UsageSummary(); break;
return FAILCMD;
} }
return retval; return retval;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment