From faf95163e9f85fe6efd41c7b0a56672c11a621a2 Mon Sep 17 00:00:00 2001 From: bde Date: Tue, 24 Aug 1999 00:56:50 +0000 Subject: Cast pointers to uintptr_t instead of casting them to u_long, and/or vice versa. Cosmetic. --- sys/pci/if_al.c | 6 +++--- sys/pci/isp_pci.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/pci') 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; -- cgit v1.1