summaryrefslogtreecommitdiff
path: root/kern/lock.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-10-14 00:23:53 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2009-10-14 00:29:22 +0200
commit2d0e623802007a66a3af2ed3c93ef83c22586fe6 (patch)
treeec3a0205e5612ba0435b55b783729ac02a8eafc6 /kern/lock.c
parent909c941dc0a2f55828855ee58f9022ffdbbd0b79 (diff)
Make local variable static
kern/lock.c (lock_wait_time): Add static qualifier.
Diffstat (limited to 'kern/lock.c')
-rw-r--r--kern/lock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/lock.c b/kern/lock.c
index 909aa46..0c61227 100644
--- a/kern/lock.c
+++ b/kern/lock.c
@@ -104,7 +104,7 @@ boolean_t simple_lock_try(simple_lock_t l)
#endif /* NCPUS > 1 */
#if NCPUS > 1
-int lock_wait_time = 100;
+static int lock_wait_time = 100;
#else /* NCPUS > 1 */
/*
@@ -112,7 +112,7 @@ int lock_wait_time = 100;
* thought something magical would happen to the
* want_write bit while we are executing.
*/
-int lock_wait_time = 0;
+static int lock_wait_time = 0;
#endif /* NCPUS > 1 */
#if MACH_SLOCKS && NCPUS == 1