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

This commit is contained in:
jhb 2002-11-08 21:30:26 +00:00
parent 5dfe0be5a6
commit 348d4a0746
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;