Correct the calculation of the unit number. it is not minor(x) & 3. It need

to be shifted >> 3. The last bits are the partition info.
This commit is contained in:
Andreas Schulz 1995-09-15 10:45:42 +00:00
parent 03a9df25d1
commit 9af3551d46
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
#include <i386/isa/atapi.h>
#define NUNIT (NWDC*2) /* Max. number of devices */
#define UNIT(d) (minor(d) & 3) /* Unit part of minor device number */
#define UNIT(d) ((minor(d) >> 3) & 3) /* Unit part of minor device number */
#define SECSIZE 2048 /* CD-ROM sector size in bytes */
#define F_OPEN 0x0001 /* The drive os opened */