Commit Graph

2 Commits

Author SHA1 Message Date
Scott Tsai
0c4ee7741c Correctly expect the return value of rindex(const char*) to be of type
'const char*' to make the code build on gcc-4.4.

The C++ spec overloads string fucntions like strtsr and rindex so that
rindex(char *) returns 'char*' and rindex(const char*) returns 'const
char*'.
Without this patch you get an "invalid conversion from ‘const char*’ to
‘char*’" error on gcc-4.4
2009-03-21 07:41:30 +08:00
The Android Open Source Project
5c11852110 Initial Contribution 2008-10-21 07:00:00 -07:00