Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sbmips/stand/netboot Fix compile error of -Werror=u...



details:   https://anonhg.NetBSD.org/src/rev/a8f2c4f381a9
branches:  trunk
changeset: 796816:a8f2c4f381a9
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Jun 19 15:09:50 2014 +0000

description:
Fix compile error of -Werror=unused-but-set-variable.

diffstat:

 sys/arch/sbmips/stand/netboot/devopen.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 0cce7d2551fe -r a8f2c4f381a9 sys/arch/sbmips/stand/netboot/devopen.c
--- a/sys/arch/sbmips/stand/netboot/devopen.c   Thu Jun 19 15:09:07 2014 +0000
+++ b/sys/arch/sbmips/stand/netboot/devopen.c   Thu Jun 19 15:09:50 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: devopen.c,v 1.4 2009/03/14 21:04:15 dsl Exp $ */
+/* $NetBSD: devopen.c,v 1.5 2014/06/19 15:09:50 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -45,19 +45,19 @@
        /* file:         out */
 {
        register char *cp;
-       register char *ncp;
        register struct devsw *dp;
 #if 0
+       register char *ncp;
        register int c, i;
+       char namebuf[20];
 #endif
        int ctlr = 0, unit = 0, part = 0;
-       char namebuf[20];
        int rc;
 
        cp = (char *)fname;
+#if 0
        ncp = namebuf;
 
-#if 0
        /* look for a string like '5/rz0/vmunix' or '5/rz3f/vmunix */
        if ((c = *cp) >= '0' && c <= '9') {
                ctlr = c - '0';



Home | Main Index | Thread Index | Old Index