diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-10-05 00:39:28 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-10-05 00:39:28 +0000 |
commit | 7dc47b08c8935b36c594692788aa758c646b2ce6 (patch) | |
tree | bd1b1fb3f80dca69c88b805c4e05f7f9de2952d4 /sys/scsi | |
parent | 4158dd1a40ddb031493325f0dfbfebbd1b4eaa04 (diff) |
make DIOCGPDINFO equivalent to DIOCGDINFO for cd's
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/cd.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c index cb50bb78742..e2d5d34bf71 100644 --- a/sys/scsi/cd.c +++ b/sys/scsi/cd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cd.c,v 1.34 1998/10/04 01:37:55 millert Exp $ */ +/* $OpenBSD: cd.c,v 1.35 1998/10/05 00:39:27 millert Exp $ */ /* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */ /* @@ -728,15 +728,8 @@ cdioctl(dev, cmd, addr, flag, p) return EIO; switch (cmd) { - case DIOCGPDINFO: { - struct cpu_disklabel osdep; - - cdgetdisklabel(dev, cd, (struct disklabel *)addr, - &osdep, 1); - return 0; - } - case DIOCGDINFO: + case DIOCGPDINFO: *(struct disklabel *)addr = *(cd->sc_dk.dk_label); return 0; |