summaryrefslogtreecommitdiffstats
path: root/adb/socket_test.cpp
diff options
context:
space:
mode:
authorDan Austin <danielaustin@google.com>2016-03-28 15:32:37 -0700
committerDan Austin <danielaustin@google.com>2016-03-29 17:17:51 +0000
commitb4cff495a1f93b6c92f4327cbfb9e564b28913d8 (patch)
tree4b11eadd5819a10ee5e4810aaa0f46f8125132a6 /adb/socket_test.cpp
parent8aeabe15dd38093029714dabb1713724400cf5f1 (diff)
downloadsystem_core-b4cff495a1f93b6c92f4327cbfb9e564b28913d8.tar.gz
system_core-b4cff495a1f93b6c92f4327cbfb9e564b28913d8.tar.bz2
system_core-b4cff495a1f93b6c92f4327cbfb9e564b28913d8.zip
Address const issues in preparation for libcxx rebase.
Change-Id: I4eccc1b5a70da9dd325e1a7e10ab0a3fe588c03f
Diffstat (limited to 'adb/socket_test.cpp')
-rw-r--r--adb/socket_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/adb/socket_test.cpp b/adb/socket_test.cpp
index 5cbef6dcf..20a3bbbfc 100644
--- a/adb/socket_test.cpp
+++ b/adb/socket_test.cpp
@@ -275,8 +275,8 @@ TEST_F(LocalSocketTest, close_socket_in_CLOSE_WAIT_state) {
// Checks that skip_host_serial(serial) returns a pointer to the part of |serial| which matches
// |expected|, otherwise logs the failure to gtest.
-void VerifySkipHostSerial(const std::string& serial, const char* expected) {
- const char* result = internal::skip_host_serial(serial.c_str());
+void VerifySkipHostSerial(std::string serial, const char* expected) {
+ char* result = internal::skip_host_serial(&serial[0]);
if (expected == nullptr) {
EXPECT_EQ(nullptr, result);
} else {