summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-08-16 17:39:57 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-08-16 17:39:57 +0000
commit5d6ba63861e35a27459c4a4a6eac721fa852c7b3 (patch)
treeb1fa863372f51d34fac4689eefdd488b3a3f6a5d
parent8ab50c420ca4788419a2f38d9fb671e3082b84db (diff)
Implement -a option, was documented but not present.
-rw-r--r--sbin/wicontrol/wicontrol.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/wicontrol/wicontrol.c b/sbin/wicontrol/wicontrol.c
index 420819aca0e..e71757baec5 100644
--- a/sbin/wicontrol/wicontrol.c
+++ b/sbin/wicontrol/wicontrol.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wicontrol.c,v 1.9 2000/08/11 09:13:21 ho Exp $ */
+/* $OpenBSD: wicontrol.c,v 1.10 2000/08/16 17:39:56 millert Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -66,7 +66,7 @@
static const char copyright[] = "@(#) Copyright (c) 1997, 1998, 1999\
Bill Paul. All rights reserved.";
static const char rcsid[] =
- "@(#) $Id: wicontrol.c,v 1.9 2000/08/11 09:13:21 ho Exp $";
+ "@(#) $Id: wicontrol.c,v 1.10 2000/08/16 17:39:56 millert Exp $";
#endif
static void wi_getval __P((char *, struct wi_req *));
@@ -625,6 +625,7 @@ static struct wi_func wi_opt[] = {
{ 'S', wi_setword, WI_RID_MAX_SLEEP, NULL },
{ 'P', wi_setword, WI_RID_PM_ENABLED, NULL },
{ 'e', wi_setword, WI_RID_ENCRYPTION, NULL },
+ { 'a', wi_setword, WI_RID_SYSTEM_SCALE, NULL },
/* These options will never be command line options which is why
they are not 'quoted' */
@@ -649,7 +650,7 @@ int main(argc, argv)
}
while((ch = getopt(argc, argv,
- "hoc:d:f:p:r:q:t:n:s:i:m:P:S:T:e:k:v:")) != -1) {
+ "hoc:d:f:p:r:q:t:n:s:i:m:P:S:T:e:k:v:a:")) != -1) {
for (p = 0; ch && wi_opt[p].key; p++)
if (ch == wi_opt[p].key) {
wi_opt[p].optarg = optarg;