Module Name: src
Committed By: nia
Date: Mon Aug 12 11:11:28 UTC 2019
Modified Files:
src/share/man/man4: wsdisplay.4 wskbd.4
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/share/man/man4/wsdisplay.4
cvs rdiff -u -r1.16 -r1.17 src/share/man/man4/wskbd.4
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man4/wsdisplay.4
diff -u src/share/man/man4/wsdisplay.4:1.46 src/share/man/man4/wsdisplay.4:1.47
--- src/share/man/man4/wsdisplay.4:1.46 Sat Jan 13 23:43:46 2018
+++ src/share/man/man4/wsdisplay.4 Mon Aug 12 11:11:28 2019
@@ -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
Index: src/share/man/man4/wskbd.4
diff -u src/share/man/man4/wskbd.4:1.16 src/share/man/man4/wskbd.4:1.17
--- src/share/man/man4/wskbd.4:1.16 Sun May 27 12:05:40 2012
+++ src/share/man/man4/wskbd.4 Mon Aug 12 11:11:28 2019
@@ -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