Enable SCSI_getprocentry() on non-Linux platforms which now should be

safe to do.
This commit is contained in:
Gerald Pfeifer 2005-08-19 09:58:40 +00:00 committed by Alexandre Julliard
parent a03adc7411
commit 523fef0c77
1 changed files with 2 additions and 2 deletions

View File

@ -337,7 +337,8 @@ static int SCSI_getprocentry( FILE * procfile, struct LinuxProcScsiDevice * dev
/* create the hardware registry branch */
static void create_hardware_branch(void)
{
#ifdef linux
/* The following mostly will work on Linux, but should not cause
* problems on other systems. */
static const char procname_ide_media[] = "/proc/ide/%s/media";
static const char procname_ide_model[] = "/proc/ide/%s/model";
static const char procname_scsi[] = "/proc/scsi/scsi";
@ -453,7 +454,6 @@ static void create_hardware_branch(void)
if( result != EOF )
WARN("Incorrect %s format\n", procname_scsi);
fclose( procfile );
#endif
}