From e0098e96f1ecd0a3444d6249ca7aaa9af8085854 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Sun, 14 Aug 2016 04:08:04 +0000 Subject: 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. --- sys/dev/pci/ips.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/pci/ips.c') 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 @@ -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), -- cgit v1.2.3