From c940945155fa8bf92e23bd1e8bd843cc41e9628d Mon Sep 17 00:00:00 2001 From: Jim Huang Date: Fri, 15 Oct 2010 02:21:14 +0800 Subject: [PATCH] bionic: stubs: Make internal symbol static Thread-specific state for the stubs functions should not be exposed to applications. Change-Id: I4d35dab6009dab8db7781671ac5cc9b5f6904e84 --- libc/bionic/stubs.c | 4 ++-- 1 file 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;