Module Name:    src
Committed By:   uebayasi
Date:           Sat Nov  1 11:02:41 UTC 2014

Modified Files:
        src/usr.bin/config: mkioconf.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/usr.bin/config/mkioconf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/config/mkioconf.c
diff -u src/usr.bin/config/mkioconf.c:1.27 src/usr.bin/config/mkioconf.c:1.28
--- src/usr.bin/config/mkioconf.c:1.27	Sat Nov  1 07:26:11 2014
+++ src/usr.bin/config/mkioconf.c	Sat Nov  1 11:02:41 2014
@@ -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 @@ emitloc(FILE *fp)
 		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");
 	}
 }
 

Reply via email to