Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/stand/ofwboot Don't always increment i, becau...



details:   https://anonhg.NetBSD.org/src/rev/c2eaf20529be
branches:  trunk
changeset: 573931:c2eaf20529be
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Feb 15 16:10:02 2005 +0000

description:
Don't always increment i, because when we reach the end of the array we'll
die.

diffstat:

 sys/arch/sparc/stand/ofwboot/boot.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 2d6e2a1ba032 -r c2eaf20529be sys/arch/sparc/stand/ofwboot/boot.c
--- a/sys/arch/sparc/stand/ofwboot/boot.c       Tue Feb 15 12:58:21 2005 +0000
+++ b/sys/arch/sparc/stand/ofwboot/boot.c       Tue Feb 15 16:10:02 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot.c,v 1.8 2005/01/16 23:26:19 chs Exp $     */
+/*     $NetBSD: boot.c,v 1.9 2005/02/15 16:10:02 christos Exp $        */
 #define DEBUG
 /*
  * Copyright (c) 1997, 1999 Eduardo E. Horvath.  All rights reserved.
@@ -434,8 +434,8 @@
                 * go into askname mode.
                 */
                if ((boothowto & RB_ASKNAME) == 0 &&
-                   i != -1 && kernels[++i]) {
-                       printf(": trying %s...\n", kernels[i]);
+                   i != -1 && kernels[i + 1]) {
+                       printf(": trying %s...\n", kernels[++i]);
                } else {
                        printf("\n");
                        boothowto |= RB_ASKNAME;



Home | Main Index | Thread Index | Old Index