Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/config Fix previous.
details: https://anonhg.NetBSD.org/src/rev/f5dab110ba10
branches: trunk
changeset: 340253:f5dab110ba10
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Sat Aug 29 07:24:49 2015 +0000
description:
Fix previous.
diffstat:
usr.bin/config/main.c | 11 +++++++++--
usr.bin/config/sem.c | 7 ++-----
2 files changed, 11 insertions(+), 7 deletions(-)
diffs (67 lines):
diff -r 160a9ea79758 -r f5dab110ba10 usr.bin/config/main.c
--- a/usr.bin/config/main.c Sat Aug 29 07:08:38 2015 +0000
+++ b/usr.bin/config/main.c Sat Aug 29 07:24:49 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.77 2015/08/28 03:55:15 uebayasi Exp $ */
+/* $NetBSD: main.c,v 1.78 2015/08/29 07:24:49 uebayasi Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: main.c,v 1.77 2015/08/28 03:55:15 uebayasi Exp $");
+__RCSID("$NetBSD: main.c,v 1.78 2015/08/29 07:24:49 uebayasi Exp $");
#ifndef MAKE_BOOTSTRAP
#include <sys/cdefs.h>
@@ -429,6 +429,13 @@
stop();
/*
+ * Fix maxusers.
+ */
+ char buf[32];
+ snprintf(buf, sizeof(buf), "%d", maxusers);
+ addoption(intern("MAXUSERS"), intern(buf));
+
+ /*
* If working on an ioconf-only config, process here and exit
*/
if (ioconfname) {
diff -r 160a9ea79758 -r f5dab110ba10 usr.bin/config/sem.c
--- a/usr.bin/config/sem.c Sat Aug 29 07:08:38 2015 +0000
+++ b/usr.bin/config/sem.c Sat Aug 29 07:24:49 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sem.c,v 1.72 2015/08/29 07:08:38 uebayasi Exp $ */
+/* $NetBSD: sem.c,v 1.73 2015/08/29 07:24:49 uebayasi Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: sem.c,v 1.72 2015/08/29 07:08:38 uebayasi Exp $");
+__RCSID("$NetBSD: sem.c,v 1.73 2015/08/29 07:24:49 uebayasi Exp $");
#include <sys/param.h>
#include <ctype.h>
@@ -239,7 +239,6 @@
void
setmaxusers(int n)
{
- char buf[32];
if (maxusers == n) {
cfgerror("duplicate maxusers parameter");
@@ -257,8 +256,6 @@
cfgerror("warning: maxusers (%d) > %d", n, maxmaxusers);
errors--;
}
- snprintf(buf, sizeof(buf), "%d", maxusers);
- addoption("MAXUSERS", buf);
}
void
Home |
Main Index |
Thread Index |
Old Index