summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-08-26 23:28:35 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-26 23:28:35 +0200
commitd3982955c68200e4105044ab04ef620c2860b0b2 (patch)
tree69d6a47242f47951fc81617abee8d63d8b26de93
parentam 1a3ccc88: am dc61d17d: am 50c17f9d: Merge "GOOGLEGMS-749 Fix integer overflow while applying block based OTA package" (diff)
parentam 5a16eba2: am eef99138: Merge "updater: Remove the unused isunresumable in SaveStash()." (diff)
downloadandroid_bootable_recovery-d3982955c68200e4105044ab04ef620c2860b0b2.tar
android_bootable_recovery-d3982955c68200e4105044ab04ef620c2860b0b2.tar.gz
android_bootable_recovery-d3982955c68200e4105044ab04ef620c2860b0b2.tar.bz2
android_bootable_recovery-d3982955c68200e4105044ab04ef620c2860b0b2.tar.lz
android_bootable_recovery-d3982955c68200e4105044ab04ef620c2860b0b2.tar.xz
android_bootable_recovery-d3982955c68200e4105044ab04ef620c2860b0b2.tar.zst
android_bootable_recovery-d3982955c68200e4105044ab04ef620c2860b0b2.zip
-rwxr-xr-xupdater/blockimg.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp
index d5c8bb195..7da9adf5f 100755
--- a/updater/blockimg.cpp
+++ b/updater/blockimg.cpp
@@ -768,8 +768,8 @@ static int CreateStash(State* state, int maxblocks, const char* blockdev,
}
static int SaveStash(const std::string& base, char** wordsave, uint8_t** buffer,
- size_t* buffer_alloc, int fd, int usehash, bool* isunresumable) {
- if (!wordsave || !buffer || !buffer_alloc || !isunresumable) {
+ size_t* buffer_alloc, int fd, bool usehash) {
+ if (!wordsave || !buffer || !buffer_alloc) {
return -1;
}
@@ -1129,7 +1129,7 @@ static int PerformCommandStash(CommandParameters* params) {
}
return SaveStash(params->stashbase, &params->cpos, &params->buffer, &params->bufsize,
- params->fd, (params->version >= 3), &params->isunresumable);
+ params->fd, (params->version >= 3));
}
static int PerformCommandFree(CommandParameters* params) {