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/e496ba61df9c
branches:  trunk
changeset: 803537:e496ba61df9c
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 0c03aebf5851 -r e496ba61df9c 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