summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2000-01-03 19:27:23 +0000
committerangelos <angelos@openbsd.org>2000-01-03 19:27:23 +0000
commitbc77f8bda9b68083d5815cc2868feda65d0be29b (patch)
tree01793048d6b2b36b0cffe7428b2d6ffa2162ce83
parentAllow for duplicate maxusers definitions (so one can include a GENERIC (diff)
downloadwireguard-openbsd-bc77f8bda9b68083d5815cc2868feda65d0be29b.tar.xz
wireguard-openbsd-bc77f8bda9b68083d5815cc2868feda65d0be29b.zip
Use warnx() instead of the error() kludge
-rw-r--r--usr.sbin/config/sem.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/usr.sbin/config/sem.c b/usr.sbin/config/sem.c
index fc42c2db610..fba2d655461 100644
--- a/usr.sbin/config/sem.c
+++ b/usr.sbin/config/sem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sem.c,v 1.15 2000/01/03 19:20:30 angelos Exp $ */
+/* $OpenBSD: sem.c,v 1.16 2000/01/03 19:27:23 angelos Exp $ */
/* $NetBSD: sem.c,v 1.10 1996/11/11 23:40:11 gwr Exp $ */
/*
@@ -165,17 +165,14 @@ setmaxusers(n)
{
if (maxusers != 0) {
- error("warning: duplicate maxusers parameter, will use latest definition (%d)", n);
- errors--; /* take it away */
+ warnx("warning: duplicate maxusers parameter, will use latest definition (%d)", n);
}
maxusers = n;
if (n < minmaxusers) {
- error("warning: minimum of %d maxusers assumed\n", minmaxusers);
- errors--; /* take it away */
+ warnx("warning: minimum of %d maxusers assumed\n", minmaxusers);
maxusers = minmaxusers;
} else if (n > maxmaxusers) {
- error("warning: maxusers (%d) > %d", n, maxmaxusers);
- errors--;
+ warnx("warning: maxusers (%d) > %d", n, maxmaxusers);
}
}