aboutsummaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-09-17 20:01:54 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-09-17 20:01:54 +0200
commitf6a7b166a232949c21eb3c864bc299271add5e45 (patch)
tree2b0bccdca09888a1fce02edb656dc7028e03c08b /i386
parente64b35e98b80a1d7169cafb49cb3f342a0d1546f (diff)
downloadgnumach-f6a7b166a232949c21eb3c864bc299271add5e45.tar.gz
gnumach-f6a7b166a232949c21eb3c864bc299271add5e45.tar.bz2
gnumach-f6a7b166a232949c21eb3c864bc299271add5e45.zip
kd_mouse: Fix warning
Diffstat (limited to 'i386')
-rw-r--r--i386/i386at/kd_mouse.c1
-rw-r--r--i386/i386at/kd_mouse.h8
2 files changed, 5 insertions, 4 deletions
diff --git a/i386/i386at/kd_mouse.c b/i386/i386at/kd_mouse.c
index afef0e63..7dd1c272 100644
--- a/i386/i386at/kd_mouse.c
+++ b/i386/i386at/kd_mouse.c
@@ -427,7 +427,6 @@ int lastgitech = 0x40; /* figure whether the first 3 bytes imply */
int fourthgitech = 0; /* look for the 4th byte; we must process it */
int middlegitech = 0; /* what should the middle button be */
-#define MOUSEBUFSIZE 5 /* num bytes def'd by protocol */
static u_char mousebuf[MOUSEBUFSIZE]; /* 5-byte packet from mouse */
void
diff --git a/i386/i386at/kd_mouse.h b/i386/i386at/kd_mouse.h
index 2d813c4a..a9fb1284 100644
--- a/i386/i386at/kd_mouse.h
+++ b/i386/i386at/kd_mouse.h
@@ -28,6 +28,8 @@
#include <sys/types.h>
+#define MOUSEBUFSIZE 5 /* num bytes def'd by protocol */
+
extern void mouse_button (kev_type which, u_char direction);
extern void mouse_enqueue (kd_event *ev);
@@ -48,11 +50,11 @@ extern void ibm_ps2_mouse_open (dev_t dev);
extern void ibm_ps2_mouse_close (dev_t dev);
-extern void mouse_packet_microsoft_mouse (u_char *mousebuf);
+extern void mouse_packet_microsoft_mouse (u_char mousebuf[MOUSEBUFSIZE]);
-extern void mouse_packet_mouse_system_mouse (u_char *mousebuf);
+extern void mouse_packet_mouse_system_mouse (u_char mousebuf[MOUSEBUFSIZE]);
-extern void mouse_packet_ibm_ps2_mouse (u_char *mousebuf);
+extern void mouse_packet_ibm_ps2_mouse (u_char mousebuf[MOUSEBUFSIZE]);
extern int mouseopen(dev_t dev, int flags, io_req_t ior);
extern void mouseclose(dev_t dev, int flags);