Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config Revert a mistakenly added, superflous attribu...



details:   https://anonhg.NetBSD.org/src/rev/10b351c49c56
branches:  trunk
changeset: 802987:10b351c49c56
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Fri Oct 10 15:35:08 2014 +0000

description:
Revert a mistakenly added, superflous attribute match test that caused some
valid options to get lost.

diffstat:

 usr.bin/config/main.c |  8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diffs (27 lines):

diff -r ca88e12dd6be -r 10b351c49c56 usr.bin/config/main.c
--- a/usr.bin/config/main.c     Fri Oct 10 14:23:06 2014 +0000
+++ b/usr.bin/config/main.c     Fri Oct 10 15:35:08 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.62 2014/10/10 10:46:05 uebayasi Exp $       */
+/*     $NetBSD: main.c,v 1.63 2014/10/10 15:35:08 uebayasi Exp $       */
 
 /*
  * Copyright (c) 1992, 1993
@@ -559,17 +559,11 @@
                 * it to the selecttab.
                 */
                CFGDBG(3, "depend attr `%s'", nv->nv_name);
-               /* XXX Do uppercased attribute names exist? */
                if ((a = ht_lookup(attrtab, nv->nv_name)) != NULL) {
                        if (a->a_iattr)
                                panic("do_depend(%s): dep `%s' is an iattr",
                                    nv->nv_name, a->a_name);
                        expandattr(a, selectattr);
-               } else if ((a = ht_lookup(attrtab, n)) != NULL) {
-                       if (a->a_iattr)
-                               panic("do_depend(%s): dep `%s' is an iattr",
-                                   n, a->a_name);
-                       expandattr(a, selectattr);
                } else {
                        if (ht_lookup(opttab, nv->nv_name) == NULL)
                                addoption(nv->nv_name, NULL);



Home | Main Index | Thread Index | Old Index