aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hung Hsieh2016-07-27 15:49:34 -0500
committerandroid-build-merger2016-07-27 15:49:34 -0500
commit977903da4907a1b17f6f90b5154cdcba962ab619 (patch)
tree196f93731693182f93d9dfb0c69dcd0ed5a522a0 /otafault
parent34e28547860fca3447bfad14c2ec4f0e273ea3d7 (diff)
parent2a3b695168cd06c5093895568a5d70c648de8e77 (diff)
downloadplatform-bootable-recovery-977903da4907a1b17f6f90b5154cdcba962ab619.tar.gz
platform-bootable-recovery-977903da4907a1b17f6f90b5154cdcba962ab619.tar.xz
platform-bootable-recovery-977903da4907a1b17f6f90b5154cdcba962ab619.zip
Merge \"Fix clang-tidy performance warnings.\"
am: 2a3b695168 Change-Id: I55cadf517ec612f1b03de71ce7ca5cff69bc80d0
Diffstat (limited to 'otafault')
-rw-r--r--otafault/ota_io.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/otafault/ota_io.cpp b/otafault/ota_io.cpp
index 94be8155..2efd3004 100644
--- a/otafault/ota_io.cpp
+++ b/otafault/ota_io.cpp
@@ -30,7 +30,7 @@ static std::string read_fault_file_name = "";
30static std::string write_fault_file_name = ""; 30static std::string write_fault_file_name = "";
31static std::string fsync_fault_file_name = ""; 31static std::string fsync_fault_file_name = "";
32 32
33static bool get_hit_file(const char* cached_path, std::string ffn) { 33static bool get_hit_file(const char* cached_path, const std::string& ffn) {
34 return should_hit_cache() 34 return should_hit_cache()
35 ? !strncmp(cached_path, OTAIO_CACHE_FNAME, strlen(cached_path)) 35 ? !strncmp(cached_path, OTAIO_CACHE_FNAME, strlen(cached_path))
36 : !strncmp(cached_path, ffn.c_str(), strlen(cached_path)); 36 : !strncmp(cached_path, ffn.c_str(), strlen(cached_path));