Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/stand/biosboot Silence a gcc 3 warning about a...



details:   https://anonhg.NetBSD.org/src/rev/e32c049134d5
branches:  trunk
changeset: 546924:e32c049134d5
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Fri May 09 00:16:55 2003 +0000

description:
Silence a gcc 3 warning about a 'x = ++x % foo' construct.

diffstat:

 sys/arch/i386/stand/biosboot/main.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 979612e6d498 -r e32c049134d5 sys/arch/i386/stand/biosboot/main.c
--- a/sys/arch/i386/stand/biosboot/main.c       Fri May 09 00:13:50 2003 +0000
+++ b/sys/arch/i386/stand/biosboot/main.c       Fri May 09 00:16:55 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.30 2003/02/01 14:48:17 dsl Exp $    */
+/*     $NetBSD: main.c,v 1.31 2003/05/09 00:16:55 fvdl Exp $   */
 
 /*
  * Copyright (c) 1996, 1997, 1999
@@ -271,14 +271,14 @@
                /* don't print "booting..." again */
                bootit(names[currname], 0, 0);
                /* since it failed, try switching bootfile. */
-               currname = ++currname % NUMNAMES;
+               currname = (currname + 1) % NUMNAMES;
 
                /* now try the second of a pair, presumably the .gz
                   version. */
                /* XXX duped code sucks. */
                bootit(names[currname], 0, 1);
                /* since it failed, try switching bootfile. */
-               currname = ++currname % NUMNAMES;
+               currname = (currname + 1) % NUMNAMES;
        }
 }
 



Home | Main Index | Thread Index | Old Index