diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-03-06 09:53:02 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-03-06 09:53:02 +0000 |
commit | 3cac56f78a92b984a3a534c7244967833c7898d0 (patch) | |
tree | 385fec42d1f4827f592381e49b71af636e89f736 /sys | |
parent | fb9eed9df4c585fcd983d706c08dc8838d50e2f6 (diff) |
Guard headers to make sure userland do not look at them.
ok bru@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/wscons/wsmouseinput.h | 5 | ||||
-rw-r--r-- | sys/dev/wscons/wsmousevar.h | 11 |
2 files changed, 14 insertions, 2 deletions
diff --git a/sys/dev/wscons/wsmouseinput.h b/sys/dev/wscons/wsmouseinput.h index a65cf21a4c4..ea21087fadd 100644 --- a/sys/dev/wscons/wsmouseinput.h +++ b/sys/dev/wscons/wsmouseinput.h @@ -1,4 +1,4 @@ -/* $OpenBSD: wsmouseinput.h,v 1.4 2017/02/27 15:59:56 bru Exp $ */ +/* $OpenBSD: wsmouseinput.h,v 1.5 2017/03/06 09:53:01 mpi Exp $ */ /* * Copyright (c) 2015, 2016 Ulf Brosziewski @@ -23,6 +23,7 @@ #ifndef _WSMOUSEINPUT_H_ #define _WSMOUSEINPUT_H_ +#ifdef _KERNEL struct btn_state { u_int buttons; @@ -224,4 +225,6 @@ int wstpad_set_params(struct wsmouseinput *, + (WSMOUSECFG_TP_OPTS_MAX & 0xff) \ + (WSMOUSECFG_TP_MAX & 0xff)) +#endif /* _KERNEL */ + #endif /* _WSMOUSEINPUT_H_ */ diff --git a/sys/dev/wscons/wsmousevar.h b/sys/dev/wscons/wsmousevar.h index 411bfac50c6..24610767c2a 100644 --- a/sys/dev/wscons/wsmousevar.h +++ b/sys/dev/wscons/wsmousevar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: wsmousevar.h,v 1.13 2017/02/27 15:59:56 bru Exp $ */ +/* $OpenBSD: wsmousevar.h,v 1.14 2017/03/06 09:53:01 mpi Exp $ */ /* $NetBSD: wsmousevar.h,v 1.4 2000/01/08 02:57:24 takemura Exp $ */ /* @@ -47,6 +47,11 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#ifndef _WSMOUSEVAR_H_ +#define _WSMOUSEVAR_H_ + +#ifdef _KERNEL + /* * WSMOUSE interfaces. */ @@ -237,3 +242,7 @@ struct wsmousehw *wsmouse_get_hw(struct device*); /* Configure the input context. */ int wsmouse_configure(struct device *, struct wsmouse_param *, u_int); + +#endif /* _KERNEL */ + +#endif /* _WSMOUSEVAR_H_ */ |