From 8a85c4a2e37f56e9615eca6575acb8632d572fac Mon Sep 17 00:00:00 2001 From: Martin Natano Date: Tue, 28 Feb 2017 10:49:38 +0000 Subject: 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 --- sys/arch/arm/arm/disksubr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch/arm') 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) -- cgit v1.2.3