[asan] Return type of index() is char*.

This is important for Android, where we can't keep system headers
from leaking into asan_interceptors.cc.

llvm-svn: 150374
This commit is contained in:
Evgeniy Stepanov 2012-02-13 12:12:32 +00:00
parent da7522b551
commit b25d0d2318
1 changed files with 2 additions and 2 deletions

View File

@ -377,10 +377,10 @@ INTERCEPTOR(char*, strchr, const char *str, int c) {
}
#ifdef __linux__
INTERCEPTOR(void*, index, const char *string, int c)
INTERCEPTOR(char*, index, const char *string, int c)
ALIAS(WRAPPER_NAME(strchr));
#else
DEFINE_REAL(void*, index, const char *string, int c);
DEFINE_REAL(char*, index, const char *string, int c);
#endif
#ifdef ANDROID