Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc Change char *bootpath to char bootpath[].



details:   https://anonhg.NetBSD.org/src/rev/0344f246b11c
branches:  trunk
changeset: 477157:0344f246b11c
user:      tsubai <tsubai%NetBSD.org@localhost>
date:      Wed Oct 13 03:27:47 1999 +0000

description:
Change char *bootpath to char bootpath[].

diffstat:

 sys/arch/macppc/include/cpu.h    |  4 ++--
 sys/arch/macppc/macppc/machdep.c |  7 ++++---
 2 files changed, 6 insertions(+), 5 deletions(-)

diffs (46 lines):

diff -r 8cce8cb5f930 -r 0344f246b11c sys/arch/macppc/include/cpu.h
--- a/sys/arch/macppc/include/cpu.h     Wed Oct 13 03:01:52 1999 +0000
+++ b/sys/arch/macppc/include/cpu.h     Wed Oct 13 03:27:47 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.9 1999/08/10 21:08:07 thorpej Exp $  */
+/*     $NetBSD: cpu.h,v 1.10 1999/10/13 03:27:47 tsubai Exp $  */
 
 /*
  * Copyright (C) 1995-1997 Wolfgang Solfrank.
@@ -56,7 +56,7 @@
 #define        need_proftick(p)        ((p)->p_flag |= P_OWEUPC, astpending = 1)
 #define        signotify(p)            (astpending = 1)
 
-extern char *bootpath;
+extern char bootpath[];
 
 #if defined(_KERNEL) || defined(_STANDALONE)
 #define        CACHELINESIZE   32
diff -r 8cce8cb5f930 -r 0344f246b11c sys/arch/macppc/macppc/machdep.c
--- a/sys/arch/macppc/macppc/machdep.c  Wed Oct 13 03:01:52 1999 +0000
+++ b/sys/arch/macppc/macppc/machdep.c  Wed Oct 13 03:27:47 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.54 1999/09/21 12:36:32 tsubai Exp $      */
+/*     $NetBSD: machdep.c,v 1.55 1999/10/13 03:27:48 tsubai Exp $      */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -110,7 +110,7 @@
 
 struct bat battable[16];
 int astpending;
-char *bootpath;
+char bootpath[256];
 paddr_t msgbuf_paddr;
 static int chosen;
 struct pmap ofw_pmap;
@@ -287,7 +287,8 @@
                startsym = endsym = NULL;
 #endif
 
-       bootpath = args;
+       strcpy(bootpath, args);
+       args = bootpath;
        while (*++args && *args != ' ');
        if (*args) {
                *args++ = 0;



Home | Main Index | Thread Index | Old Index