summaryrefslogtreecommitdiff
path: root/sbin/wsconsctl/wsconsctl.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-10-24 17:46:00 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-10-24 17:46:00 +0000
commit5ed1e6772a38fba9db389aba1e31cf0ce1b1d28a (patch)
tree250f69b741cc2d637dbead80da943ed33aac6a71 /sbin/wsconsctl/wsconsctl.c
parenta25271cf05c77ef67e692c437e7aca52278f30d0 (diff)
- repair usage() output
- when changing display.foo settings, print "display.foo -> bar" like done for mouse.* and keyboard.* - use warn() over err() whenever possible and appropriate code path to display as much as useful information as possible even if one ioctl fails. This is especially useful to get the display.* settings via wsconsctl -a if your mouse can't be probed, like on the iBook. ok mcikye@
Diffstat (limited to 'sbin/wsconsctl/wsconsctl.c')
-rw-r--r--sbin/wsconsctl/wsconsctl.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sbin/wsconsctl/wsconsctl.c b/sbin/wsconsctl/wsconsctl.c
index 5600de258af..063ef3dbd3e 100644
--- a/sbin/wsconsctl/wsconsctl.c
+++ b/sbin/wsconsctl/wsconsctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsconsctl.c,v 1.8 2001/08/26 17:35:13 deraadt Exp $ */
+/* $OpenBSD: wsconsctl.c,v 1.9 2001/10/24 17:45:59 miod Exp $ */
/* $NetBSD: wsconsctl.c,v 1.2 1998/12/29 22:40:20 hannken Exp $ */
/*-
@@ -82,9 +82,9 @@ usage(msg)
fprintf(stderr, "%s: %s\n", __progname, msg);
fprintf(stderr,
- "usage: %s [-f file] [-n] name ...\n"
- " %s [-f file] [-n] -w name=value ...\n"
- " %s [-f file] [-n] -a\n", __progname,
+ "usage: %s [-n] name ...\n"
+ " %s [-n] -w name=value ...\n"
+ " %s [-n] -a\n", __progname,
__progname, __progname);
exit(1);
@@ -117,7 +117,6 @@ main(argc, argv)
case 'w':
wflag = 1;
break;
- case '?':
default:
usage(NULL);
}