summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/getenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdlib/getenv.c')
-rw-r--r--lib/libc/stdlib/getenv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdlib/getenv.c b/lib/libc/stdlib/getenv.c
index 41517e2f..91cdc87b 100644
--- a/lib/libc/stdlib/getenv.c
+++ b/lib/libc/stdlib/getenv.c
@@ -7,7 +7,7 @@ extern char **environ;
char *getenv(const char *name)
{
- LIBC_LOCK(libc.lock.environ);
+ LIBC_LOCK(__libc.lock.environ);
for (char **env = environ; *env; env++) {
char *eq = NULL;
@@ -21,12 +21,12 @@ char *getenv(const char *name)
}
}
if (eq && name[eq - *env] == '\0') {
- LIBC_UNLOCK(libc.lock.environ);
+ LIBC_UNLOCK(__libc.lock.environ);
return eq + 1;
}
}
- LIBC_UNLOCK(libc.lock.environ);
+ LIBC_UNLOCK(__libc.lock.environ);
return NULL;
}