diff options
author | bde <bde@FreeBSD.org> | 1995-03-28 07:58:53 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-03-28 07:58:53 +0000 |
commit | 4f64fe43e7186660d972f9eae509424f1addaa8a (patch) | |
tree | e153346dd5a88815c9c3e7f6748d7766c40a6b0d /sys/dev/joy | |
parent | 6ad7636d4a24ed5873a051888c579f5ef47677c4 (diff) | |
download | FreeBSD-src-4f64fe43e7186660d972f9eae509424f1addaa8a.zip FreeBSD-src-4f64fe43e7186660d972f9eae509424f1addaa8a.tar.gz |
Add and move declarations to fix all of the warnings from `gcc -Wimplicit'
(except in netccitt, netiso and netns) that I didn't notice when I fixed
"all" such warnings before.
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 5fae0d7..942b45a 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) { |