summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-07-21 12:06:16 +0900
committerKoichi Sasada <ko1@atdot.net>2021-12-15 15:04:34 +0900
commitf471cf295bf093d51b6258338d5e7add0ce962b4 (patch)
treee8f4209faccf619e389f0b8dcddef081b0d806ff /hash.c
parent3aab870761ff0138ffd29e0a08b6cdf151e2acb4 (diff)
downloadruby-f471cf295bf093d51b6258338d5e7add0ce962b4.tar.gz
Symbols closed to env should be static
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);