diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-01-03 19:27:24 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-01-03 19:27:24 +0000 |
commit | 371ed72f4420fd048c7a2fa2366724784aa8c9fe (patch) | |
tree | 0720d4252cd741cbdd19d34424d2e6e3bd53134f /usr.sbin/config | |
parent | 6178de85dc1c74699911e0bd379b09e7a09b6cb2 (diff) |
Use warnx() instead of the error() kludge
Diffstat (limited to 'usr.sbin/config')
-rw-r--r-- | usr.sbin/config/sem.c | 11 |
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); } } |