From 6db9af039259aa6682577f369f2bc8eee1ba6fde Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 20 Dec 2017 12:28:30 -0800 Subject: [PATCH] EndsWith now accepts std::string suffixes. Bug: N/A Test: ran tests Change-Id: I947a94f1ef950452fb3f90b31448d915a12eb2ac --- tests/dlfcn_symlink_support.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/dlfcn_symlink_support.cpp b/tests/dlfcn_symlink_support.cpp index be1839ecf..a5d3c3eae 100644 --- a/tests/dlfcn_symlink_support.cpp +++ b/tests/dlfcn_symlink_support.cpp @@ -44,7 +44,7 @@ static int dl_callback(struct dl_phdr_info *info, size_t /* size */, void *data) return 0; } - if (android::base::EndsWith(info->dlpi_name, suffix.c_str())) { + if (android::base::EndsWith(info->dlpi_name, suffix)) { std::string* path = reinterpret_cast(data); *path = info->dlpi_name; return 1; // found