diff options
author | Bruce Evans <bde@FreeBSD.org> | 1998-07-15 02:32:35 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1998-07-15 02:32:35 +0000 |
commit | a23d65bfc81ba69197bec5dcc814e36783f02f46 (patch) | |
tree | 8ea1483624c6c26a321a15abba7f299f7726ac5d /sys/pci/ide_pci.c | |
parent | aad7cac45af92ed232797abde2e4506b80046c1e (diff) | |
download | src-a23d65bfc81ba69197bec5dcc814e36783f02f46.tar.gz src-a23d65bfc81ba69197bec5dcc814e36783f02f46.zip |
Cast pointers to uintptr_t/intptr_t instead of to u_long/long,
respectively. Most of the longs should probably have been
u_longs, but this changes is just to prevent warnings about
casts between pointers and integers of different sizes, not
to fix poorly chosen types.
Notes
Notes:
svn path=/head/; revision=37649
Diffstat (limited to 'sys/pci/ide_pci.c')
-rw-r--r-- | sys/pci/ide_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/ide_pci.c b/sys/pci/ide_pci.c index d358d9aed34f..68df969ff56b 100644 --- a/sys/pci/ide_pci.c +++ b/sys/pci/ide_pci.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ide_pci.c,v 1.12 1998/06/17 14:58:03 bde Exp $ + * $Id: ide_pci.c,v 1.13 1998/07/11 07:45:52 bde Exp $ */ #include "pci.h" @@ -1283,7 +1283,7 @@ ide_pci_dmasetup(void *xcp, char *vaddr, u_long vcount, int dir) /* Generate first PRD entry, which may be non-aligned. */ - firstpage = PAGE_SIZE - ((u_long)vaddr & PAGE_MASK); + firstpage = PAGE_SIZE - ((uintptr_t)vaddr & PAGE_MASK); prd_base = vtophys(vaddr); prd_count = MIN(count, firstpage); |