From e4fda8b349b0a8d68da083652a946c5d50020ac6 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Mon, 14 Oct 2013 23:26:24 +0000 Subject: XXsize() returns daddr_t, so calculate the return value in a daddr_t variable and not (usually) an int. ok miod@ --- sys/arch/sparc/dev/xd.c | 5 +++-- sys/arch/sparc/dev/xy.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'sys/arch/sparc') 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); -- cgit v1.2.3