summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-08-24 00:56:50 +0000
committerbde <bde@FreeBSD.org>1999-08-24 00:56:50 +0000
commitfaf95163e9f85fe6efd41c7b0a56672c11a621a2 (patch)
tree2d3b666b5cac091c67205d14119b379e2b7a16f0 /sys/pci
parentc832c03c3c4b357f9ff6827351df1e89d60a083c (diff)
downloadFreeBSD-src-faf95163e9f85fe6efd41c7b0a56672c11a621a2.zip
FreeBSD-src-faf95163e9f85fe6efd41c7b0a56672c11a621a2.tar.gz
Cast pointers to uintptr_t instead of casting them to u_long, and/or vice
versa. Cosmetic.
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/if_al.c6
-rw-r--r--sys/pci/isp_pci.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/pci/if_al.c b/sys/pci/if_al.c
index 1c3c773..05ea417 100644
--- a/sys/pci/if_al.c
+++ b/sys/pci/if_al.c
@@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_al.c,v 1.7 1999/08/21 06:24:32 msmith Exp $
+ * $Id: if_al.c,v 1.8 1999/08/21 22:10:48 msmith Exp $
*/
/*
@@ -91,7 +91,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: if_al.c,v 1.7 1999/08/21 06:24:32 msmith Exp $";
+ "$Id: if_al.c,v 1.8 1999/08/21 22:10:48 msmith Exp $";
#endif
/*
@@ -965,7 +965,7 @@ al_attach(config_id, unit)
}
sc->al_ldata = (struct al_list_data *)sc->al_ldata_ptr;
- round = (unsigned long)sc->al_ldata_ptr & 0xF;
+ round = (uintptr_t)sc->al_ldata_ptr & 0xF;
roundptr = sc->al_ldata_ptr;
for (i = 0; i < 8; i++) {
if (round % 8) {
diff --git a/sys/pci/isp_pci.c b/sys/pci/isp_pci.c
index e32a1cb..8fd49bb 100644
--- a/sys/pci/isp_pci.c
+++ b/sys/pci/isp_pci.c
@@ -1,4 +1,4 @@
-/* $Id: isp_pci.c,v 1.29 1999/08/16 01:52:21 gibbs Exp $ */
+/* $Id: isp_pci.c,v 1.30 1999/08/16 19:52:29 mjacob Exp $ */
/*
* PCI specific probe and attach routines for Qlogic ISP SCSI adapters.
* FreeBSD Version.
@@ -576,7 +576,7 @@ isp_pci_attach(pcici_t cfid, int unit)
/*
* poor man's attempt at pseudo randomness.
*/
- long i = (long) isp;
+ long i = (intptr_t) isp;
i >>= 5;
i &= 0x7;
OpenPOWER on IntegriCloud