diff options
author | bde <bde@FreeBSD.org> | 1998-08-10 17:06:28 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-08-10 17:06:28 +0000 |
commit | fd093a92abf593af9ca5e35b48ea1e8ec4468072 (patch) | |
tree | 3d9c3bf0f0b2209dea233de6fb61c47b4abd52ed /sys/dev/dpt | |
parent | 024fab27856fcd8a1144e1e415e1fd9f28b89e53 (diff) | |
download | FreeBSD-src-fd093a92abf593af9ca5e35b48ea1e8ec4468072.zip FreeBSD-src-fd093a92abf593af9ca5e35b48ea1e8ec4468072.tar.gz |
Hide compiler warnings for casting from a long to a pointer of a
different size (on i386's with 64 bit longs). Cosmetic. Non-cosmetic
unportabilities were already hidden by using ntohl() to convert a
32-bit user DMA address to a long.
Diffstat (limited to 'sys/dev/dpt')
-rw-r--r-- | sys/dev/dpt/dpt_scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/dpt/dpt_scsi.c b/sys/dev/dpt/dpt_scsi.c index ca24ea4..672e1f4 100644 --- a/sys/dev/dpt/dpt_scsi.c +++ b/sys/dev/dpt/dpt_scsi.c @@ -64,7 +64,7 @@ * 3. dpt_handle_timeouts potentially inserts into the queue */ -#ident "$Id: dpt_scsi.c,v 1.8 1998/08/05 00:54:36 eivind Exp $" +#ident "$Id: dpt_scsi.c,v 1.9 1998/08/06 20:57:33 eivind Exp $" #define _DPT_C_ @@ -1150,7 +1150,7 @@ dpt_user_cmd_done(dpt_softc_t * dpt, int bus, dpt_ccb_t * ccb) /** * If Auto Request Sense is on, copyout the sense struct */ -#define usr_pckt_DMA (caddr_t)ntohl(ccb->eata_ccb.cp_reqDMA) +#define usr_pckt_DMA (caddr_t)(intptr_t)ntohl(ccb->eata_ccb.cp_reqDMA) #define usr_pckt_len ntohl(ccb->eata_ccb.cp_datalen) if (ccb->eata_ccb.Auto_Req_Sen == 1) { if (copyout((caddr_t) & ccb->sense_data, usr_pckt_DMA, |