Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config config(1): Don't emit unused empty loc[]



details:   https://anonhg.NetBSD.org/src/rev/447f7210b515
branches:  trunk
changeset: 333395:447f7210b515
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Sat Nov 01 11:02:41 2014 +0000

description:
config(1): Don't emit unused empty loc[]

diffstat:

 usr.bin/config/mkioconf.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r ca5753f00b46 -r 447f7210b515 usr.bin/config/mkioconf.c
--- a/usr.bin/config/mkioconf.c Sat Nov 01 08:13:11 2014 +0000
+++ b/usr.bin/config/mkioconf.c Sat Nov 01 11:02:41 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mkioconf.c,v 1.27 2014/11/01 07:26:11 uebayasi Exp $   */
+/*     $NetBSD: mkioconf.c,v 1.28 2014/11/01 11:02:41 uebayasi Exp $   */
 
 /*
  * Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: mkioconf.c,v 1.27 2014/11/01 07:26:11 uebayasi Exp $");
+__RCSID("$NetBSD: mkioconf.c,v 1.28 2014/11/01 11:02:41 uebayasi Exp $");
 
 #include <sys/param.h>
 #include <err.h>
@@ -324,10 +324,6 @@
                for (i = 0; i < locators.used; i++)
                        fprintf(fp, "%s%s,", SEP(i, 8), locators.vec[i]);
                fprintf(fp, "\n};\n");
-       } else if (*packed != NULL) {
-               /* We need to have *something*. */
-               fprintf(fp, "\n/* locators */\n"
-                       "static int loc[1] = { -1 };\n");
        }
 }
 



Home | Main Index | Thread Index | Old Index