summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hash.c b/hash.c
index 58a775f853..b81e206ab1 100644
--- a/hash.c
+++ b/hash.c
@@ -4810,9 +4810,9 @@ extern char **environ;
#define ENVNMATCH(s1, s2, n) (memcmp((s1), (s2), (n)) == 0)
#endif
-rb_nativethread_lock_t env_lock;
+static rb_nativethread_lock_t env_lock;
-const char*
+static const char*
getenv_with_lock(const char *name)
{
rb_native_mutex_lock(&env_lock);