summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2013-10-14 23:26:24 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2013-10-14 23:26:24 +0000
commite4fda8b349b0a8d68da083652a946c5d50020ac6 (patch)
treecc9fde8510275e03eb5c9089c8990a4dc9086588 /sys/arch/sparc
parentf30aac5cc0dc877321988e1871b7742b03bb0f68 (diff)
XXsize() returns daddr_t, so calculate the return value in a daddr_t
variable and not (usually) an int. ok miod@
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/dev/xd.c5
-rw-r--r--sys/arch/sparc/dev/xy.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/sparc/dev/xd.c b/sys/arch/sparc/dev/xd.c
index 391f0401569..f7dd8eba5ad 100644
--- a/sys/arch/sparc/dev/xd.c
+++ b/sys/arch/sparc/dev/xd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xd.c,v 1.58 2013/06/11 16:42:11 deraadt Exp $ */
+/* $OpenBSD: xd.c,v 1.59 2013/10/14 23:26:22 krw Exp $ */
/* $NetBSD: xd.c,v 1.37 1997/07/29 09:58:16 fair Exp $ */
/*
@@ -971,7 +971,8 @@ xdsize(dev)
{
struct xd_softc *xdsc;
- int unit, part, size, omask;
+ int unit, part, omask;
+ daddr_t size;
/* valid unit? */
unit = DISKUNIT(dev);
diff --git a/sys/arch/sparc/dev/xy.c b/sys/arch/sparc/dev/xy.c
index 6ae533295d4..561079a653e 100644
--- a/sys/arch/sparc/dev/xy.c
+++ b/sys/arch/sparc/dev/xy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xy.c,v 1.54 2013/06/11 16:42:11 deraadt Exp $ */
+/* $OpenBSD: xy.c,v 1.55 2013/10/14 23:26:22 krw Exp $ */
/* $NetBSD: xy.c,v 1.26 1997/07/19 21:43:56 pk Exp $ */
/*
@@ -933,7 +933,8 @@ xysize(dev)
{
struct xy_softc *xysc;
- int unit, part, size, omask;
+ int unit, part, omask;
+ daddr_t size;
/* valid unit? */
unit = DISKUNIT(dev);