applypatch: {Load,Save}FileContents and ParseSha1 take std::string.

Test: mmma -j bootable/recovery
Test: Run recovery_component_test on marlin.
Change-Id: Ifcf244346a88dac833d91b169a4c2aee1fe677f1
This commit is contained in:
Tao Bao
2018-06-20 13:21:16 -07:00
parent 859bfc5659
commit 8dc704930b
4 changed files with 19 additions and 18 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ static bool ParsePatchArgs(int argc, const char** argv, std::vector<std::string>
}
uint8_t digest[SHA_DIGEST_LENGTH];
if (ParseSha1(pieces[0].c_str(), digest) != 0) {
if (ParseSha1(pieces[0], digest) != 0) {
LOG(ERROR) << "Failed to parse SHA-1 \"" << argv[i] << "\"";
return false;
}