diff options
author | Martin Natano <natano@cvs.openbsd.org> | 2017-02-28 10:49:38 +0000 |
---|---|---|
committer | Martin Natano <natano@cvs.openbsd.org> | 2017-02-28 10:49:38 +0000 |
commit | 8a85c4a2e37f56e9615eca6575acb8632d572fac (patch) | |
tree | 8771d2696156d2697c4b13c67d207227654acd71 /sys/arch/arm | |
parent | dda377334195e99d66dc6b37c32d383d020990a1 (diff) |
Switch geteblks()'s size argument from int to size_t. It's called with
unsigned variables as argument in most places anyway. Decrease the
chance of signedness/range mismatch issues.
ok stefan
Diffstat (limited to 'sys/arch/arm')
-rw-r--r-- | sys/arch/arm/arm/disksubr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/arm/arm/disksubr.c b/sys/arch/arm/arm/disksubr.c index 3e294013e6f..c1677f65eb0 100644 --- a/sys/arch/arm/arm/disksubr.c +++ b/sys/arch/arm/arm/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.60 2015/09/27 20:20:23 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.61 2017/02/28 10:49:37 natano Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -63,7 +63,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), goto done; /* get a buffer and initialize it */ - bp = geteblk((int)lp->d_secsize); + bp = geteblk(lp->d_secsize); bp->b_dev = dev; error = readdoslabel(bp, strat, lp, NULL, spoofonly); @@ -103,7 +103,7 @@ writedisklabel(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp) struct buf *bp = NULL; /* get a buffer and initialize it */ - bp = geteblk((int)lp->d_secsize); + bp = geteblk(lp->d_secsize); bp->b_dev = dev; if (readdoslabel(bp, strat, lp, &partoff, 1) != 0) |