Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/config If an attribute is selected, select its depen...
details: https://anonhg.NetBSD.org/src/rev/d690abbf01cd
branches: trunk
changeset: 332826:d690abbf01cd
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Fri Oct 10 10:16:19 2014 +0000
description:
If an attribute is selected, select its dependencies too.
diffstat:
usr.bin/config/sem.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 635918a3965b -r d690abbf01cd usr.bin/config/sem.c
--- a/usr.bin/config/sem.c Fri Oct 10 10:10:40 2014 +0000
+++ b/usr.bin/config/sem.c Fri Oct 10 10:16:19 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sem.c,v 1.53 2014/10/10 08:14:47 uebayasi Exp $ */
+/* $NetBSD: sem.c,v 1.54 2014/10/10 10:16:19 uebayasi Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -1861,7 +1861,13 @@
void
selectattr(struct attr *a)
{
+ struct attrlist *al;
+ struct attr *dep;
+ for (al = a->a_deps; al != NULL; al = al->al_next) {
+ dep = al->al_this;
+ selectattr(dep);
+ }
(void)ht_insert(selecttab, a->a_name, __UNCONST(a->a_name));
CFGDBG(3, "attr selected `%s'", a->a_name);
}
Home |
Main Index |
Thread Index |
Old Index