diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-10-14 23:26:24 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-10-14 23:26:24 +0000 |
commit | e4fda8b349b0a8d68da083652a946c5d50020ac6 (patch) | |
tree | cc9fde8510275e03eb5c9089c8990a4dc9086588 /sys/arch/vax/vsa | |
parent | f30aac5cc0dc877321988e1871b7742b03bb0f68 (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/vax/vsa')
-rw-r--r-- | sys/arch/vax/vsa/hdc9224.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/vax/vsa/hdc9224.c b/sys/arch/vax/vsa/hdc9224.c index 0371a6d8804..af426a94243 100644 --- a/sys/arch/vax/vsa/hdc9224.c +++ b/sys/arch/vax/vsa/hdc9224.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hdc9224.c,v 1.40 2013/07/06 18:31:46 miod Exp $ */ +/* $OpenBSD: hdc9224.c,v 1.41 2013/10/14 23:26:22 krw Exp $ */ /* $NetBSD: hdc9224.c,v 1.16 2001/07/26 15:05:09 wiz Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. @@ -624,7 +624,7 @@ hdsize(dev_t dev) { struct hdsoftc *hd; int unit = DISKUNIT(dev); - int size; + daddr_t size; if (unit >= hd_cd.cd_ndevs || hd_cd.cd_devs[unit] == 0) return -1; |