Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config Always select the fallback allattr.



details:   https://anonhg.NetBSD.org/src/rev/2c34a622f44f
branches:  trunk
changeset: 332790:2c34a622f44f
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Thu Oct 09 16:08:36 2014 +0000

description:
Always select the fallback allattr.

diffstat:

 usr.bin/config/main.c |  6 +++---
 usr.bin/config/sem.c  |  3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diffs (44 lines):

diff -r f04602cc7ba5 -r 2c34a622f44f usr.bin/config/main.c
--- a/usr.bin/config/main.c     Thu Oct 09 15:25:26 2014 +0000
+++ b/usr.bin/config/main.c     Thu Oct 09 16:08:36 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.56 2014/10/09 06:49:53 uebayasi Exp $       */
+/*     $NetBSD: main.c,v 1.57 2014/10/09 16:08:36 uebayasi Exp $       */
 
 /*
  * Copyright (c) 1992, 1993
@@ -283,8 +283,6 @@
        minmaxusers = 1;
        maxmaxusers = 10000;
        initintern();
-       initfiles();
-       initsem();
        ident = NULL;
        devbasetab = ht_new();
        devroottab = ht_new();
@@ -312,6 +310,8 @@
        nextappmkopt = &appmkoptions;
        nextcndmkopt = &condmkoptions;
        nextfsopt = &fsoptions;
+       initfiles();
+       initsem();
 
        /*
         * Handle profiling (must do this before we try to create any
diff -r f04602cc7ba5 -r 2c34a622f44f usr.bin/config/sem.c
--- a/usr.bin/config/sem.c      Thu Oct 09 15:25:26 2014 +0000
+++ b/usr.bin/config/sem.c      Thu Oct 09 16:08:36 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sem.c,v 1.46 2014/10/09 15:25:26 uebayasi Exp $        */
+/*     $NetBSD: sem.c,v 1.47 2014/10/09 16:08:36 uebayasi Exp $        */
 
 /*
  * Copyright (c) 1992, 1993
@@ -100,6 +100,7 @@
        allattr.a_name = "netbsd";
        TAILQ_INIT(&allattr.a_files);
        (void)ht_insert(attrtab, allattr.a_name, &allattr);
+       selectattr(&allattr);
 
        errattr.a_name = "<internal>";
 



Home | Main Index | Thread Index | Old Index