Merge "Don't export unnecessary symbol."

This commit is contained in:
Nick Kralevich 2013-10-03 22:52:02 +00:00 committed by Gerrit Code Review
commit e8dc673ca5
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ unsigned int gMallocDebugBacklog;
int gMallocDebugLevel; int gMallocDebugLevel;
template<typename FunctionType> template<typename FunctionType>
void InitMallocFunction(void* malloc_impl_handler, FunctionType* func, const char* prefix, const char* suffix) { static void InitMallocFunction(void* malloc_impl_handler, FunctionType* func, const char* prefix, const char* suffix) {
char symbol[128]; char symbol[128];
snprintf(symbol, sizeof(symbol), "%s_%s", prefix, suffix); snprintf(symbol, sizeof(symbol), "%s_%s", prefix, suffix);
*func = reinterpret_cast<FunctionType>(dlsym(malloc_impl_handler, symbol)); *func = reinterpret_cast<FunctionType>(dlsym(malloc_impl_handler, symbol));