Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp700/stand/xxboot make loadadr uintptr_t since we ...



details:   https://anonhg.NetBSD.org/src/rev/e82c4846e4ff
branches:  trunk
changeset: 787386:e82c4846e4ff
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jun 15 00:41:56 2013 +0000

description:
make loadadr uintptr_t since we are casting it to pointers.

diffstat:

 sys/arch/hp700/stand/xxboot/main.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (48 lines):

diff -r 4d9fc8878a5b -r e82c4846e4ff sys/arch/hp700/stand/xxboot/main.c
--- a/sys/arch/hp700/stand/xxboot/main.c        Sat Jun 15 00:40:12 2013 +0000
+++ b/sys/arch/hp700/stand/xxboot/main.c        Sat Jun 15 00:41:56 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.10 2012/02/24 18:45:20 skrll Exp $  */
+/*     $NetBSD: main.c,v 1.11 2013/06/15 00:41:56 christos Exp $       */
 
 /*
  * Copyright (c) 2003 ITOH Yasufumi.
@@ -41,9 +41,9 @@
 
 static char *hexstr(char *, unsigned);
 void ipl_main(unsigned /*interactive*/, unsigned /*sptop*/, unsigned /*psw*/);
-void load_file(const char *, unsigned /*loadadr*/, unsigned /*interactive*/,
+void load_file(const char *, uintptr_t /*loadadr*/, unsigned /*interactive*/,
     int /*part*/);
-void load_file_ino(ino32_t, const char *, unsigned /*loadadr*/,
+void load_file_ino(ino32_t, const char *, uintptr_t /*loadadr*/,
     unsigned /*interactive*/, int /*part*/);
 
 struct loadinfo {
@@ -184,7 +184,7 @@
        int part = 0;           /* default partition "a" */
        unsigned secsz, partoff, partsz;
        int c, c1;
-       unsigned loadadr;
+       uintptr_t loadadr;
 
 #if 0
        print(hexstr(buf, interactive));
@@ -294,7 +294,7 @@
 }
 
 void
-load_file(const char *path, unsigned loadadr, unsigned interactive, int part)
+load_file(const char *path, uintptr_t loadadr, unsigned interactive, int part)
 {
 
        /* look-up the file */
@@ -305,7 +305,7 @@
 }
 
 void
-load_file_ino(ino32_t ino, const char *fn, unsigned loadadr, unsigned interactive, int part)
+load_file_ino(ino32_t ino, const char *fn, uintptr_t loadadr, unsigned interactive, int part)
        /* fn:           for message only */
 {
        union ufs_dinode dinode;



Home | Main Index | Thread Index | Old Index