Ticket #266: smartmontools-os_darwin.cpp-2.patch

File smartmontools-os_darwin.cpp-2.patch, 1.9 KB (added by Christian Franke, 11 years ago)

Patch version 2

  • os_darwin.cpp

     
    7272
    7373// tries to guess device type given the name (a path).  See utility.h
    7474// for return values.
    75 int guess_device_type (const char* dev_name) {
     75int guess_device_type (const char * /* dev_name */) {
    7676  // Only ATA is supported right now, so that's what it'd better be.
    77   dev_name = dev_name;  // suppress unused warning.
    7877  return CONTROLLER_ATA;
    7978}
    8079
     
    420419  return err == kIOReturnSuccess ? 0 : -1;
    421420}
    422421
    423 // There's no special handling needed for hidden devices, the kernel
    424 // must deal with them.
    425 int escalade_command_interface(int fd, int escalade_port, int escalade_type,
    426                                smart_command_set command, int select,
    427                                char *data)
    428 {
    429   fd = fd;
    430   escalade_port = escalade_port;
    431   escalade_type = escalade_type;
    432   command = command;
    433   select = select;
    434   data = data;
    435   return -1;
    436 }
    437 
    438 int areca_command_interface(int fd, int escalade_port,
    439                                smart_command_set command, int select,
    440                                char *data)
    441 {
    442   fd = fd;
    443   escalade_port = escalade_port;
    444   command = command;
    445   select = select;
    446   data = data;
    447   return -1;
    448 }
    449 
    450 
    451 
    452 
    453 int marvell_command_interface(int fd, smart_command_set command,
    454                       int select, char *data)
    455 {
    456   fd = fd;
    457   command = command;
    458   select = select;
    459   data = data;
    460   return -1;
    461 }
    462 
    463 int highpoint_command_interface(int fd, smart_command_set command, int select, char *data)
    464 {
    465   fd = fd;
    466   command = command;
    467   select = select;
    468   data = data;
    469   return -1;
    470 }
    471 
    472422// Interface to SCSI devices.  See os_linux.c
    473 int do_scsi_cmnd_io(int fd, struct scsi_cmnd_io * iop, int report) {
    474   fd = fd;
    475   iop = iop;
    476   report = report;
     423int do_scsi_cmnd_io(int /* fd */, struct scsi_cmnd_io * /* iop */, int /* report */) {
    477424  return -ENOSYS;
    478425}