From 09e84938615cacb14f39882d3c4b717b54749ed7 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Fri, 31 Aug 2018 11:25:05 -0700 Subject: applypatch: {Load,Save}FileContents return bool values. Bug: 110106408 Test: Run recovery_unit_test and recovery_component_test on marlin. Change-Id: Id72e24dd00eb451565d90cff6e049f4f4b844ea2 --- applypatch/include/applypatch/applypatch.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'applypatch/include') diff --git a/applypatch/include/applypatch/applypatch.h b/applypatch/include/applypatch/applypatch.h index 70eee1c16..6fc6f0fc9 100644 --- a/applypatch/include/applypatch/applypatch.h +++ b/applypatch/include/applypatch/applypatch.h @@ -92,12 +92,11 @@ bool CheckPartition(const Partition& target); // function is idempotent. Returns the flashing result. bool FlashPartition(const Partition& target, const std::string& source_filename); -// Reads a file into memory; stores the file contents and associated metadata in *file. Returns 0 -// on success, or -1 on error. -int LoadFileContents(const std::string& filename, FileContents* file); +// Reads a file into memory; stores the file contents and associated metadata in *file. +bool LoadFileContents(const std::string& filename, FileContents* file); -// Saves the given FileContents object to the given filename. Returns 0 on success, or -1 on error. -int SaveFileContents(const std::string& filename, const FileContents* file); +// Saves the given FileContents object to the given filename. +bool SaveFileContents(const std::string& filename, const FileContents* file); // bspatch.cpp -- cgit v1.2.3