diff options
author | Mike Lockwood <lockwood@android.com> | 2010-05-19 15:37:06 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2010-05-19 15:37:06 -0400 |
commit | d519668b62d5a402a2abc003c02e436f2424cdb8 (patch) | |
tree | 6f7262d773cf018ac35136de98b6526693e174b8 /android | |
parent | d8a7a6080ef864166264e5e19311976477ae2941 (diff) |
Fix problem with const result from strchr()
Needed for simulator build on newer Ubuntu distributions.
Change-Id: Ibb8cd3cdb4feae89a20eec56131e322f39721b1a
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'android')
-rw-r--r-- | android/OldPhoneNumberUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/OldPhoneNumberUtils.cpp b/android/OldPhoneNumberUtils.cpp index 5f180dc..9c2f20e 100644 --- a/android/OldPhoneNumberUtils.cpp +++ b/android/OldPhoneNumberUtils.cpp @@ -173,7 +173,7 @@ static int minPositive(int a, int b) * is no such character in a. */ static int indexOf(const char *a, char b) { - char *ix = strchr(a, b); + const char *ix = strchr(a, b); if (ix == NULL) return -1; |