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/dev/ata/wd.c | |
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/dev/ata/wd.c')
-rw-r--r-- | sys/dev/ata/wd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c index b98e21a49c0..2444b24cd62 100644 --- a/sys/dev/ata/wd.c +++ b/sys/dev/ata/wd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wd.c,v 1.112 2013/09/27 12:12:16 krw Exp $ */ +/* $OpenBSD: wd.c,v 1.113 2013/10/14 23:26:23 krw Exp $ */ /* $NetBSD: wd.c,v 1.193 1999/02/28 17:15:27 explorer Exp $ */ /* @@ -879,7 +879,7 @@ wdsize(dev_t dev) { struct wd_softc *wd; int part, omask; - int64_t size; + daddr_t size; WDCDEBUG_PRINT(("wdsize\n"), DEBUG_FUNCS); |