diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-04-29 18:59:38 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-04-29 18:59:38 +0000 |
commit | 2c23ab771efce93deba00f416eed6e6f4723ded9 (patch) | |
tree | bad3fb5dd56e0d0faeacdec91cbc51112ca5b0c5 /sys/arch/sparc | |
parent | 24e611d29fab672dd204063b1be94008a605f986 (diff) |
Replace expansions of DISKLABELDEV() with DISKLABELDEV(). Shorter, and
more consistant. No change to code.
ok miod@
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/dev/xd.c | 7 | ||||
-rw-r--r-- | sys/arch/sparc/dev/xy.c | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/sys/arch/sparc/dev/xd.c b/sys/arch/sparc/dev/xd.c index 1aa62b5e11e..accb5f40fa3 100644 --- a/sys/arch/sparc/dev/xd.c +++ b/sys/arch/sparc/dev/xd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xd.c,v 1.34 2007/02/15 00:53:26 krw Exp $ */ +/* $OpenBSD: xd.c,v 1.35 2007/04/29 18:59:37 krw Exp $ */ /* $NetBSD: xd.c,v 1.37 1997/07/29 09:58:16 fair Exp $ */ /* @@ -888,9 +888,8 @@ xdioctl(dev, command, addr, flag, p) /* Simulate opening partition 0 so write succeeds. */ xd->sc_dk.dk_openmask |= (1 << 0); - error = writedisklabel(MAKEDISKDEV(major(dev), DISKUNIT(dev), RAW_PART), - xdstrategy, xd->sc_dk.dk_label, - xd->sc_dk.dk_cpulabel); + error = writedisklabel(DISKLABELDEV(dev), xdstrategy, + xd->sc_dk.dk_label, xd->sc_dk.dk_cpulabel); xd->sc_dk.dk_openmask = xd->sc_dk.dk_copenmask | xd->sc_dk.dk_bopenmask; } diff --git a/sys/arch/sparc/dev/xy.c b/sys/arch/sparc/dev/xy.c index b89291a05f1..5ad979a6d5d 100644 --- a/sys/arch/sparc/dev/xy.c +++ b/sys/arch/sparc/dev/xy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xy.c,v 1.30 2007/02/15 00:53:26 krw Exp $ */ +/* $OpenBSD: xy.c,v 1.31 2007/04/29 18:59:37 krw Exp $ */ /* $NetBSD: xy.c,v 1.26 1997/07/19 21:43:56 pk Exp $ */ /* @@ -849,9 +849,8 @@ xyioctl(dev, command, addr, flag, p) /* Simulate opening partition 0 so write succeeds. */ xy->sc_dk.dk_openmask |= (1 << 0); - error = writedisklabel(MAKEDISKDEV(major(dev), DISKUNIT(dev), RAW_PART), - xystrategy, xy->sc_dk.dk_label, - xy->sc_dk.dk_cpulabel); + error = writedisklabel(DISKLABELDEV(dev), xystrategy, + xy->sc_dk.dk_label, xy->sc_dk.dk_cpulabel); xy->sc_dk.dk_openmask = xy->sc_dk.dk_copenmask | xy->sc_dk.dk_bopenmask; } |