Module Name: src Committed By: msaitoh Date: Thu Jun 19 15:09:50 UTC 2014
Modified Files: src/sys/arch/sbmips/stand/netboot: devopen.c Log Message: Fix compile error of -Werror=unused-but-set-variable. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/sbmips/stand/netboot/devopen.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/sbmips/stand/netboot/devopen.c diff -u src/sys/arch/sbmips/stand/netboot/devopen.c:1.4 src/sys/arch/sbmips/stand/netboot/devopen.c:1.5 --- src/sys/arch/sbmips/stand/netboot/devopen.c:1.4 Sat Mar 14 21:04:15 2009 +++ src/sys/arch/sbmips/stand/netboot/devopen.c Thu Jun 19 15:09:50 2014 @@ -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 @@ devopen(struct open_file *f, const char /* 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';