Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys guard prototypes for lf_* functions by ifdef _KERNEL



details:   https://anonhg.NetBSD.org/src/rev/b5a37507dbb7
branches:  trunk
changeset: 495755:b5a37507dbb7
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Fri Aug 04 09:20:21 2000 +0000

description:
guard prototypes for lf_* functions by ifdef _KERNEL
Noted by Andrew Brown <atatat%atatdot.net@localhost>.

diffstat:

 sys/sys/lockf.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 5f8f252d4e13 -r b5a37507dbb7 sys/sys/lockf.h
--- a/sys/sys/lockf.h   Fri Aug 04 09:19:39 2000 +0000
+++ b/sys/sys/lockf.h   Fri Aug 04 09:20:21 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lockf.h,v 1.9 2000/07/22 15:26:11 jdolecek Exp $       */
+/*     $NetBSD: lockf.h,v 1.10 2000/08/04 09:20:21 jdolecek Exp $      */
 
 /*
  * Copyright (c) 1991, 1993
@@ -71,6 +71,8 @@
 /* Maximum length of sleep chains to traverse to try and detect deadlock. */
 #define MAXDEPTH 50
 
+#ifdef _KERNEL
+
 __BEGIN_DECLS
 void    lf_addblock __P((struct lockf *, struct lockf *));
 int     lf_advlock __P((struct vop_advlock_args *, struct lockf **, off_t));
@@ -94,4 +96,6 @@
 __END_DECLS
 #endif /* LOCKF_DEBUG */
 
+#endif /* _KERNEL */
+
 #endif /* !_SYS_LOCKF_H_ */



Home | Main Index | Thread Index | Old Index