diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2006-10-21 16:01:55 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2006-10-21 16:01:55 +0000 |
commit | d0e8f636ee6a51ad73fd6c2617eeaf1aae162618 (patch) | |
tree | 0d8520fd3e4d96585ff6ff465b38eceb65cbbec2 /sys/arch/sparc | |
parent | c6ced3de0f5d243baf070114323bc236ff5fbdd8 (diff) |
Some KNF cleanup.
De-register. Move declaration to top of function for DOS MBR
processing. Indent nit in macppc.
No functional change.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/sparc/disksubr.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/arch/sparc/sparc/disksubr.c b/sys/arch/sparc/sparc/disksubr.c index 27180362798..eeb663d25d0 100644 --- a/sys/arch/sparc/sparc/disksubr.c +++ b/sys/arch/sparc/sparc/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.41 2006/08/17 10:34:14 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.42 2006/10/21 16:01:54 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.16 1996/04/28 20:25:59 thorpej Exp $ */ /* @@ -172,12 +172,12 @@ readdisklabel(dev, strat, lp, clp, spoofonly) */ int setdisklabel(olp, nlp, openmask, clp) - register struct disklabel *olp, *nlp; + struct disklabel *olp, *nlp; u_long openmask; struct cpu_disklabel *clp; { - register int i; - register struct partition *opp, *npp; + int i; + struct partition *opp, *npp; /* sanity clause */ if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0 || @@ -217,7 +217,7 @@ int writedisklabel(dev, strat, lp, clp) dev_t dev; void (*strat)(struct buf *); - register struct disklabel *lp; + struct disklabel *lp; struct cpu_disklabel *clp; { struct buf *bp; @@ -568,11 +568,11 @@ disklabel_bsd_to_sun(lp, cp) */ int isbad(bt, cyl, trk, sec) - register struct dkbad *bt; + struct dkbad *bt; int cyl, trk, sec; { - register int i; - register long blk, bblk; + int i; + long blk, bblk; blk = ((long)cyl << 16) + (trk << 8) + sec; for (i = 0; i < NBT_BAD; i++) { |