Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/macppc undo an accidentally committed change...



details:   https://anonhg.NetBSD.org/src/rev/9c831e146d9b
branches:  trunk
changeset: 536781:9c831e146d9b
user:      dbj <dbj%NetBSD.org@localhost>
date:      Sun Sep 22 03:10:14 2002 +0000

description:
undo an accidentally committed change that was
included in move of bootpath alias expansion

diffstat:

 sys/arch/macppc/macppc/autoconf.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (46 lines):

diff -r a24ad09bc1e0 -r 9c831e146d9b sys/arch/macppc/macppc/autoconf.c
--- a/sys/arch/macppc/macppc/autoconf.c Sun Sep 22 03:04:31 2002 +0000
+++ b/sys/arch/macppc/macppc/autoconf.c Sun Sep 22 03:10:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.31 2002/09/22 03:04:31 dbj Exp $        */
+/*     $NetBSD: autoconf.c,v 1.32 2002/09/22 03:10:14 dbj Exp $        */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -97,7 +97,7 @@
         * an OFW path and probably is an alias, so look up the alias
         * and regenerate the full bootpath so device_register will work.
         */
-       if (cbootpath[0] != '/' && cbootpath[0] != '\0') {
+       if (bootpath[0] != '/' && bootpath[0] != '\0') {
                int aliases = OF_finddevice("/aliases");
                char tmpbuf[100];
                char aliasbuf[256];
@@ -105,8 +105,8 @@
                        char *cp1, *cp2, *cp;
                        char saved_ch = 0;
                        int len;
-                       cp1 = strchr(cbootpath, ':');
-                       cp2 = strchr(cbootpath, ',');
+                       cp1 = strchr(bootpath, ':');
+                       cp2 = strchr(bootpath, ',');
                        cp = cp1;
                        if (cp1 == NULL || (cp2 != NULL && cp2 < cp1))
                                cp = cp2;
@@ -116,13 +116,13 @@
                                saved_ch = *cp;
                                *cp = '\0';
                        }
-                       len = OF_getprop(aliases, cbootpath, aliasbuf,
+                       len = OF_getprop(aliases, bootpath, aliasbuf,
                            sizeof(aliasbuf));
                        if (len > 0) {
                                if (aliasbuf[len-1] == '\0')
                                        len--;
-                               memcpy(cbootpath, aliasbuf, len);
-                               strcpy(&cbootpath[len], tmpbuf);
+                               memcpy(bootpath, aliasbuf, len);
+                               strcpy(&bootpath[len], tmpbuf);
                        } else {
                                *cp = saved_ch;
                        }



Home | Main Index | Thread Index | Old Index