diff options
author | Carl Shapiro <cshapiro@google.com> | 2010-03-16 15:18:53 -0700 |
---|---|---|
committer | Carl Shapiro <cshapiro@google.com> | 2010-03-16 15:18:53 -0700 |
commit | 22ff07e22ee4e9628c091fddcf72fc6fa6746ba9 (patch) | |
tree | d78d503a33457dd87adf6ec65f97c6a9c4ebd74a /luni | |
parent | 014aa1a70743ae7e6ec0de1555f5b43d43844cf4 (diff) | |
download | libcore-22ff07e22ee4e9628c091fddcf72fc6fa6746ba9.zip libcore-22ff07e22ee4e9628c091fddcf72fc6fa6746ba9.tar.gz libcore-22ff07e22ee4e9628c091fddcf72fc6fa6746ba9.tar.bz2 |
Replace a use of index with strchr.
Change-Id: I2c1238bc1bd0945533712d0d74a761721b8408a3
Diffstat (limited to 'luni')
-rw-r--r-- | luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.cpp b/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.cpp index 12c3dd9..4680ca6 100644 --- a/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.cpp +++ b/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.cpp @@ -493,7 +493,7 @@ static jbyteArray osNetworkSystem_ipStringToByteArray(JNIEnv* env, jclass, // Accept IPv6 addresses (only) in square brackets for compatibility. if (ipString[0] == '[' && ipString[byteCount - 1] == ']' && - index(ipString, ':') != NULL) { + strchr(ipString, ':') != NULL) { memmove(ipString, ipString + 1, byteCount - 2); ipString[byteCount - 2] = '\0'; } |