diff options
| author | uebayasi <uebayasi@NetBSD.org> | 2014-11-01 11:02:41 +0000 |
|---|---|---|
| committer | uebayasi <uebayasi@NetBSD.org> | 2014-11-01 11:02:41 +0000 |
| commit | bfeac30e2c36ffcd718ce3ea80b878b4e2fe54b3 (patch) | |
| tree | 57f50019acfc2b6ec10296e49a49981fef760525 /usr.bin | |
| parent | 8266c070fb0d82bc2f43c13bf4360c69b1d344c6 (diff) | |
config(1): Don't emit unused empty loc[]
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/config/mkioconf.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/config/mkioconf.c b/usr.bin/config/mkioconf.c index 6a20338241a..a73a3b73d31 100644 --- a/usr.bin/config/mkioconf.c +++ b/usr.bin/config/mkioconf.c @@ -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"); } } |
