Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/wscons These ioctl commands should be '_IOW' to set ...



details:   https://anonhg.NetBSD.org/src/rev/cdeef514466d
branches:  trunk
changeset: 501848:cdeef514466d
user:      takemura <takemura%NetBSD.org@localhost>
date:      Mon Jan 08 11:20:24 2001 +0000

description:
These ioctl commands should be '_IOW' to set value.
  WSMOUSEIO_SRES
  WSMOUSEIO_SSCALE
  WSMOUSEIO_SRATE

diffstat:

 sys/dev/wscons/wsconsio.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r f1052ad9a33f -r cdeef514466d sys/dev/wscons/wsconsio.h
--- a/sys/dev/wscons/wsconsio.h Mon Jan 08 09:53:08 2001 +0000
+++ b/sys/dev/wscons/wsconsio.h Mon Jan 08 11:20:24 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsconsio.h,v 1.34 2000/10/01 03:29:13 takemura Exp $ */
+/* $NetBSD: wsconsio.h,v 1.35 2001/01/08 11:20:24 takemura Exp $ */
 
 /*
  * Copyright (c) 1996, 1997 Christopher G. Demetriou.  All rights reserved.
@@ -164,16 +164,16 @@
 #define                WSMOUSE_TYPE_ARCHIMEDES 8       /* Archimedes mouse */
 
 /* Set resolution.  Not applicable to all mouse types. */
-#define        WSMOUSEIO_SRES          _IOR('W', 33, u_int)
+#define        WSMOUSEIO_SRES          _IOW('W', 33, u_int)
 #define                WSMOUSE_RES_MIN         0
 #define                WSMOUSE_RES_DEFAULT     75
 #define                WSMOUSE_RES_MAX         100
 
 /* Set scale factor (num / den).  Not applicable to all mouse types. */
-#define        WSMOUSEIO_SSCALE        _IOR('W', 34, u_int[2])
+#define        WSMOUSEIO_SSCALE        _IOW('W', 34, u_int[2])
 
 /* Set sample rate.  Not applicable to all mouse types. */
-#define        WSMOUSEIO_SRATE         _IOR('W', 35, u_int)
+#define        WSMOUSEIO_SRATE         _IOW('W', 35, u_int)
 #define                WSMOUSE_RATE_MIN        0
 #define                WSMOUSE_RATE_DEFAULT    50
 #define                WSMOUSE_RATE_MAX        100



Home | Main Index | Thread Index | Old Index