Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man4 Fix some apparant typos of wscons defines.



details:   https://anonhg.NetBSD.org/src/rev/0c82fe7eeefd
branches:  trunk
changeset: 453451:0c82fe7eeefd
user:      nia <nia%NetBSD.org@localhost>
date:      Mon Aug 12 11:11:28 2019 +0000

description:
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.

diffstat:

 share/man/man4/wsdisplay.4 |  4 ++--
 share/man/man4/wskbd.4     |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (42 lines):

diff -r 240ea462c211 -r 0c82fe7eeefd share/man/man4/wsdisplay.4
--- a/share/man/man4/wsdisplay.4        Mon Aug 12 10:28:04 2019 +0000
+++ b/share/man/man4/wsdisplay.4        Mon Aug 12 11:11:28 2019 +0000
@@ -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 @@
 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
diff -r 240ea462c211 -r 0c82fe7eeefd share/man/man4/wskbd.4
--- a/share/man/man4/wskbd.4    Mon Aug 12 10:28:04 2019 +0000
+++ b/share/man/man4/wskbd.4    Mon Aug 12 11:11:28 2019 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index