diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1995-03-28 07:58:53 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1995-03-28 07:58:53 +0000 |
| commit | 3aa12267a55fa252598db360627fce79a0bf1608 (patch) | |
| tree | e153346dd5a88815c9c3e7f6748d7766c40a6b0d /sys/dev/joy | |
| parent | 1b9d1a091a93984b7c5df61dd07d020eda7e2468 (diff) | |
Notes
Diffstat (limited to 'sys/dev/joy')
| -rw-r--r-- | sys/dev/joy/joy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/joy/joy.c b/sys/dev/joy/joy.c index 5fae0d709238..942b45a03315 100644 --- a/sys/dev/joy/joy.c +++ b/sys/dev/joy/joy.c @@ -32,9 +32,9 @@ #include <errno.h> -#include <sys/types.h> +#include <sys/param.h> +#include <sys/systm.h> -#include <machine/cpufunc.h> #include <machine/joystick.h> #include <i386/isa/isa.h> @@ -158,7 +158,7 @@ joyread (dev_t dev, struct uio *uio, int flag) state >>= 4; c.b1 = ~state & 1; c.b2 = ~(state >> 1) & 1; - return uiomove (&c, sizeof(struct joystick), uio); + return uiomove ((caddr_t)&c, sizeof(struct joystick), uio); } int joyioctl (dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) { |
