aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Huang <jserv@0xlab.org>2010-10-15 02:21:14 +0800
committerJim Huang <jserv@0xlab.org>2010-10-15 02:23:00 +0800
commitc940945155fa8bf92e23bd1e8bd843cc41e9628d (patch)
tree558eaf16cd1434e6d99580b1b86d4d5f2b1ac2c0
parentf67e5211e045af1b12f646448a5a35f96ba5e8f1 (diff)
downloadbionic-c940945155fa8bf92e23bd1e8bd843cc41e9628d.tar.gz
bionic: stubs: Make internal symbol static
Thread-specific state for the stubs functions should not be exposed to applications. Change-Id: I4d35dab6009dab8db7781671ac5cc9b5f6904e84
-rw-r--r--libc/bionic/stubs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/bionic/stubs.c b/libc/bionic/stubs.c
index d4956747d..a01d64c2f 100644
--- a/libc/bionic/stubs.c
+++ b/libc/bionic/stubs.c
@@ -40,8 +40,8 @@
/** Thread-specific state for the stubs functions
**/
-pthread_once_t the_once = PTHREAD_ONCE_INIT;
-pthread_key_t the_key;
+static pthread_once_t the_once = PTHREAD_ONCE_INIT;
+static pthread_key_t the_key;
typedef struct {
struct passwd passwd;