summaryrefslogtreecommitdiffstats
path: root/sys/pccard/pcic.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-16 01:21:52 +0000
committerbde <bde@FreeBSD.org>1998-08-16 01:21:52 +0000
commit9e27b29fba08158ea646560dc2c0f671e17923cf (patch)
treeca50bac0920c7e526393546681e1b22c87541004 /sys/pccard/pcic.c
parente14b44bbf30df0b2ba5a4750b2c2806bcae489eb (diff)
downloadFreeBSD-src-9e27b29fba08158ea646560dc2c0f671e17923cf.zip
FreeBSD-src-9e27b29fba08158ea646560dc2c0f671e17923cf.tar.gz
Use [u]intptr_t instead of [u_]long for casts between pointers and
integers. Don't forget to cast to (void *) as well.
Diffstat (limited to 'sys/pccard/pcic.c')
-rw-r--r--sys/pccard/pcic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c
index ff02b78..6bfd484 100644
--- a/sys/pccard/pcic.c
+++ b/sys/pccard/pcic.c
@@ -374,7 +374,7 @@ pcic_memory(struct slot *slt, int win)
#endif /* PC98 */
if (mp->flags & MDF_ACTIVE) {
- unsigned long sys_addr = (unsigned long)mp->start >> 12;
+ unsigned long sys_addr = (uintptr_t)(void *)mp->start >> 12;
/*
* Write the addresses, card offsets and length.
* The values are all stored as the upper 12 bits of the
OpenPOWER on IntegriCloud