summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-03-21 06:04:06 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-03-21 06:04:06 +0000
commitcceb5a975068fb85a72a11e3ee2d663973ab269c (patch)
treedea890a133c33c76b5aaf7a2840828403ce68015 /sbin
parentae52ccd491473f22e7f63eef41d7492a23d9b70e (diff)
Correctly issue WSKBDIO_GETDEFAULTKEYREPEAT instead of WSKBDIO_GETKEYREPEAT
ioctl when getting the default repeat settings; bug report by ``Creamy'' on tech@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/wsconsctl/keyboard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/wsconsctl/keyboard.c b/sbin/wsconsctl/keyboard.c
index 095b94f33b1..da5f6b520e9 100644
--- a/sbin/wsconsctl/keyboard.c
+++ b/sbin/wsconsctl/keyboard.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: keyboard.c,v 1.11 2012/08/08 16:44:07 shadchin Exp $ */
+/* $OpenBSD: keyboard.c,v 1.12 2013/03/21 06:04:05 miod Exp $ */
/* $NetBSD: keyboard.c 1.1 1998/12/28 14:01:17 hannken Exp $ */
/*-
@@ -121,8 +121,8 @@ keyboard_get_values(int fd)
if (field_by_value(keyboard_field_tab, &dfrepeat.delN)->flags & FLG_GET)
dfrepeat.which |= WSKBD_KEYREPEAT_DODELN;
if (dfrepeat.which != 0 &&
- ioctl(fd, WSKBDIO_GETKEYREPEAT, &dfrepeat) < 0)
- warn("WSKBDIO_GETKEYREPEAT");
+ ioctl(fd, WSKBDIO_GETDEFAULTKEYREPEAT, &dfrepeat) < 0)
+ warn("WSKBDIO_GETDEFAULTKEYREPEAT");
if (field_by_value(keyboard_field_tab, &ledstate)->flags & FLG_GET)
if (ioctl(fd, WSKBDIO_GETLEDS, &ledstate) < 0)