Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hp300/dev Use uintptr_t so this file can be compile...



details:   https://anonhg.NetBSD.org/src/rev/06ff8d5859ac
branches:  trunk
changeset: 329390:06ff8d5859ac
user:      dholland <dholland%NetBSD.org@localhost>
date:      Thu May 22 16:30:40 2014 +0000

description:
Use uintptr_t so this file can be compile-tested on foreign arches.

diffstat:

 sys/arch/hp300/dev/dcmreg.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 48ca6b693755 -r 06ff8d5859ac sys/arch/hp300/dev/dcmreg.h
--- a/sys/arch/hp300/dev/dcmreg.h       Thu May 22 16:28:06 2014 +0000
+++ b/sys/arch/hp300/dev/dcmreg.h       Thu May 22 16:30:40 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dcmreg.h,v 1.9 2011/02/08 20:20:13 rmind Exp $ */
+/*     $NetBSD: dcmreg.h,v 1.10 2014/05/22 16:30:40 dholland Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -131,7 +131,7 @@
        u_char          pad3[7];        /* +12 */
        vu_char t_tail;                 /* +19 */
 };
-#define        dcm_preg(d, p)  ((struct dcmpreg *)((u_int)(d)+0x8e00+(p)*2))
+#define        dcm_preg(d, p)  ((struct dcmpreg *)((uintptr_t)(d)+0x8e00+(p)*2))
 
 /* interface reset/id */
 #define DCMCON          0x80   /* REMOTE/LOCAL switch, read */



Home | Main Index | Thread Index | Old Index