summaryrefslogtreecommitdiffstats
path: root/sys/dev/dgb
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/dev/dgb
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/dev/dgb')
-rw-r--r--sys/dev/dgb/dgb.c6
-rw-r--r--sys/dev/dgb/dgm.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/dgb/dgb.c b/sys/dev/dgb/dgb.c
index 06f1679..9537c12 100644
--- a/sys/dev/dgb/dgb.c
+++ b/sys/dev/dgb/dgb.c
@@ -1,5 +1,5 @@
/*-
- * dgb.c $Id: dgb.c,v 1.37 1998/08/12 16:16:10 bde Exp $
+ * dgb.c $Id: dgb.c,v 1.38 1998/08/12 23:44:22 brian Exp $
*
* Digiboard driver.
*
@@ -419,7 +419,7 @@ dgbprobe(dev)
sc->altpin=0;
/* left 24 bits only (ISA address) */
- sc->pmem=((long)dev->id_maddr & 0xFFFFFF);
+ sc->pmem=((intptr_t)(void *)dev->id_maddr & 0xFFFFFF);
DPRINT4(DB_INFO,"dgb%d: port 0x%x mem 0x%lx\n",unit,sc->port,sc->pmem);
@@ -493,7 +493,7 @@ dgbprobe(dev)
dev->id_unit, sc->pmem,
sc->pmem & 0xFFE000);
- dev->id_maddr= (u_char *)( (long)sc->pmem & 0xFFE000 );
+ dev->id_maddr= (u_char *)(void *)(intptr_t)( sc->pmem & 0xFFE000 );
}
}
}
diff --git a/sys/dev/dgb/dgm.c b/sys/dev/dgb/dgm.c
index c10e403..487b1aa 100644
--- a/sys/dev/dgb/dgm.c
+++ b/sys/dev/dgb/dgm.c
@@ -1,5 +1,5 @@
/*-
- * $Id: dgm.c,v 1.2 1998/08/05 20:19:03 brian Exp $
+ * $Id: dgm.c,v 1.3 1998/08/12 17:38:09 bde Exp $
*
* This driver and the associated header files support the ISA PC/Xem
* Digiboards. Its evolutionary roots are described below.
@@ -392,7 +392,7 @@ dgmprobe(dev)
sc->altpin=0;
/* left 24 bits only (ISA address) */
- sc->pmem=((long)dev->id_maddr & 0xFFFFFF);
+ sc->pmem=((intptr_t)(void *)dev->id_maddr & 0xFFFFFF);
DPRINT4(DB_INFO,"dgm%d: port 0x%x mem 0x%lx\n",unit,sc->port,sc->pmem);
OpenPOWER on IntegriCloud