summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
diff options
context:
space:
mode:
authorMartin Natano <natano@cvs.openbsd.org>2017-02-28 10:49:38 +0000
committerMartin Natano <natano@cvs.openbsd.org>2017-02-28 10:49:38 +0000
commit8a85c4a2e37f56e9615eca6575acb8632d572fac (patch)
tree8771d2696156d2697c4b13c67d207227654acd71 /sys/arch/macppc
parentdda377334195e99d66dc6b37c32d383d020990a1 (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/macppc')
-rw-r--r--sys/arch/macppc/macppc/disksubr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/macppc/macppc/disksubr.c b/sys/arch/macppc/macppc/disksubr.c
index afe6c630109..d4ebd4968c2 100644
--- a/sys/arch/macppc/macppc/disksubr.c
+++ b/sys/arch/macppc/macppc/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.81 2016/02/24 18:25:50 krw Exp $ */
+/* $OpenBSD: disksubr.c,v 1.82 2017/02/28 10:49:37 natano Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
@@ -66,7 +66,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 = readdpmelabel(bp, strat, lp, NULL, spoofonly);
@@ -191,7 +191,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;
/* Read it in, slap the new label in, and write it back out */