Fix some sizeof(int) != sizeof(void *) warnings.

This commit is contained in:
John Baldwin 2002-11-08 21:30:26 +00:00
parent 985cce5132
commit 4ed3ce72b0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106668
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;