summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-11-08 21:30:26 +0000
committerjhb <jhb@FreeBSD.org>2002-11-08 21:30:26 +0000
commit686416bfa551f218d6a5b40a2144b803839f9688 (patch)
tree0788844a56c233653e60b27b6379e23f66fce28e /sys/pci
parent6c4366c376a1252da95827194278aae715fc05eb (diff)
downloadFreeBSD-src-686416bfa551f218d6a5b40a2144b803839f9688.zip
FreeBSD-src-686416bfa551f218d6a5b40a2144b803839f9688.tar.gz
Fix some sizeof(int) != sizeof(void *) warnings.
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/amd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/amd.c b/sys/pci/amd.c
index 049acc6..7130755 100644
--- a/sys/pci/amd.c
+++ b/sys/pci/amd.c
@@ -694,7 +694,7 @@ amd_poll(struct cam_sim * psim)
static u_int8_t *
phystovirt(struct amd_srb * pSRB, u_int32_t xferCnt)
{
- int dataPtr;
+ intptr_t dataPtr;
struct ccb_scsiio *pcsio;
u_int8_t i;
struct amd_sg * pseg;
@@ -702,7 +702,7 @@ phystovirt(struct amd_srb * pSRB, u_int32_t xferCnt)
dataPtr = 0;
pcsio = &pSRB->pccb->csio;
- dataPtr = (int) pcsio->data_ptr;
+ dataPtr = (intptr_t) pcsio->data_ptr;
pseg = pSRB->SGsegment;
for (i = 0; i < pSRB->SGIndex; i++) {
dataPtr += (int) pseg->SGXLen;
OpenPOWER on IntegriCloud