Fix some apparant typos of wscons defines.

These don't exist anywhere in /usr/include, but the corrected variants
do.

No idea why WSMOUSE_EVENT_VERSION is the odd one out. That seems incorrect
too.
This commit is contained in:
nia 2019-08-12 11:11:28 +00:00
parent cc0607fbb6
commit 0af042a9d7
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: wsdisplay.4,v 1.46 2018/01/13 23:43:46 wiz Exp $
.\" $NetBSD: wsdisplay.4,v 1.47 2019/08/12 11:11:28 nia Exp $
.\"
.\" Copyright (c) 1999 Matthias Drochner.
.\" Copyright (c) 2002 Ben Harris.
@ -564,7 +564,7 @@ and is currently 1.
All new code should use a call similar to the below to ensure the
correct version is returned.
.Bd -literal -offset indent
int ver = WSDISPLAY_EVENT_VERSION;
int ver = WSDISPLAYIO_EVENT_VERSION;
if (ioctl(fd, WSDISPLAYIO_SETVERSION, &ver) == -1)
err(EXIT_FAILURE, "cannot set version");
.Ed

View File

@ -1,4 +1,4 @@
.\" $NetBSD: wskbd.4,v 1.16 2012/05/27 12:05:40 wiz Exp $
.\" $NetBSD: wskbd.4,v 1.17 2019/08/12 11:11:28 nia Exp $
.\"
.\" Copyright (c) 1999
.\" Matthias Drochner. All rights reserved.
@ -142,12 +142,12 @@ Set the wscons_event protocol version.
The default is 0 for binary compatibility.
The latest version is
always available as
.Dv WSKBD_EVENT_VERSION ,
.Dv WSKBDIO_EVENT_VERSION ,
and is currently 1.
All new code should use a call similar to the below to ensure the
correct version is returned.
.Bd -literal -offset indent
int ver = WSKBD_EVENT_VERSION;
int ver = WSKBDIO_EVENT_VERSION;
if (ioctl(fd, WSKBDIO_SETVERSION, &ver) == -1)
err(EXIT_FAILURE, "cannot set version");
.Ed