diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-07-17 19:24:59 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-07-17 19:24:59 +0000 |
commit | 9fb3fcf821f4b4419269a60ba91d0dc3f277513f (patch) | |
tree | 363cfdfbc293cdd233cedfda1fa6c1fb878f937a /sys/miscfs | |
parent | 617ab60c3ce4327103fcb5bf59d40feb03302962 (diff) |
Wrap kernel function declarations in #ifdef _KERNEL to eliminate warnings
when the header is used by userspace.
ok miod@
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/specfs/specdev.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/miscfs/specfs/specdev.h b/sys/miscfs/specfs/specdev.h index 55d9322b493..7e1a83a7648 100644 --- a/sys/miscfs/specfs/specdev.h +++ b/sys/miscfs/specfs/specdev.h @@ -1,4 +1,4 @@ -/* $OpenBSD: specdev.h,v 1.25 2008/05/03 14:41:29 thib Exp $ */ +/* $OpenBSD: specdev.h,v 1.26 2010/07/17 19:24:58 guenther Exp $ */ /* $NetBSD: specdev.h,v 1.12 1996/02/13 13:13:01 mycroft Exp $ */ /* @@ -78,6 +78,7 @@ struct cloneinfo { extern struct vnode *speclisth[SPECHSZ]; +#ifdef _KERNEL /* * Prototypes for special file operations on vnodes. */ @@ -112,3 +113,4 @@ int spec_vnoperate(void *); /* spec_subr.c */ int spec_open_clone(struct vop_open_args *); int spec_close_clone(struct vop_close_args *); +#endif /* _KERNEL */ |