summaryrefslogtreecommitdiff
path: root/sys/dev/pci/ips.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2016-08-14 04:08:04 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2016-08-14 04:08:04 +0000
commite0098e96f1ecd0a3444d6249ca7aaa9af8085854 (patch)
tree9b284a67ec1e0b846e6cd0a4d1080073ed679b78 /sys/dev/pci/ips.c
parent503033b551646cea4d4713f0295447f98b49dbc0 (diff)
change some types in bio from u_quad_t to uint64_t, and fix casts in
drivers that fill that field in too. quad types are going away.
Diffstat (limited to 'sys/dev/pci/ips.c')
-rw-r--r--sys/dev/pci/ips.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/ips.c b/sys/dev/pci/ips.c
index 51ef0ecb987..ae494d7333f 100644
--- a/sys/dev/pci/ips.c
+++ b/sys/dev/pci/ips.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ips.c,v 1.112 2015/09/10 18:10:34 deraadt Exp $ */
+/* $OpenBSD: ips.c,v 1.113 2016/08/14 04:08:03 dlg Exp $ */
/*
* Copyright (c) 2006, 2007, 2009 Alexander Yurchenko <grange@openbsd.org>
@@ -1145,7 +1145,7 @@ ips_ioctl_vol(struct ips_softc *sc, struct bioc_vol *bv)
}
}
- bv->bv_size = (u_quad_t)letoh32(ld->size) * IPS_SECSZ;
+ bv->bv_size = (uint64_t)letoh32(ld->size) * IPS_SECSZ;
bv->bv_level = di->drive[vid].raid;
bv->bv_nodisk = ld->chunkcnt;
@@ -1221,7 +1221,7 @@ out:
bd->bd_channel = chan;
bd->bd_target = target;
bd->bd_lun = 0;
- bd->bd_size = (u_quad_t)letoh32(dev->seccnt) * IPS_SECSZ;
+ bd->bd_size = (uint64_t)letoh32(dev->seccnt) * IPS_SECSZ;
bzero(bd->bd_vendor, sizeof(bd->bd_vendor));
memcpy(bd->bd_vendor, dev->devid, MIN(sizeof(bd->bd_vendor),