diff --git a/src/hdaccess.c b/src/hdaccess.c index 93852768..622bdf1a 100644 --- a/src/hdaccess.c +++ b/src/hdaccess.c @@ -272,18 +272,16 @@ list_disk_t *hd_parse(list_disk_t *list_disk, const int verbose, const arch_fnct #elif defined(__APPLE__) { char device[100]; - char device_scsi[]="/dev/disk0"; - char device_raw[]="/dev/rdisk0"; /* Disk */ for(i=0;i<20;i++) { snprintf(device, sizeof(device), "/dev/disk%u", i); - list_disk=insert_new_disk(list_disk,file_test_availability(device_scsi,verbose,arch,testdisk_mode)); + list_disk=insert_new_disk(list_disk,file_test_availability(device, verbose, arch, testdisk_mode)); } for(i=0;i<20;i++) { snprintf(device, sizeof(device), "/dev/rdisk%u", i); - list_disk=insert_new_disk(list_disk,file_test_availability(device_raw,verbose,arch,testdisk_mode)); + list_disk=insert_new_disk(list_disk,file_test_availability(device, verbose, arch, testdisk_mode)); } } #elif defined(TARGET_LINUX)