diff options
author | Tao Bao <tbao@google.com> | 2015-08-26 23:03:01 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-08-26 23:03:01 +0200 |
commit | eef991389c7f739dd80bbe6e4a3699322c12dcfb (patch) | |
tree | aacb123561249da7bf9d2a5c866244278ca94a47 /updater/blockimg.cpp | |
parent | Merge "GOOGLEGMS-749 Fix integer overflow while applying block based OTA package" (diff) | |
parent | updater: Remove the unused isunresumable in SaveStash(). (diff) | |
download | android_bootable_recovery-eef991389c7f739dd80bbe6e4a3699322c12dcfb.tar android_bootable_recovery-eef991389c7f739dd80bbe6e4a3699322c12dcfb.tar.gz android_bootable_recovery-eef991389c7f739dd80bbe6e4a3699322c12dcfb.tar.bz2 android_bootable_recovery-eef991389c7f739dd80bbe6e4a3699322c12dcfb.tar.lz android_bootable_recovery-eef991389c7f739dd80bbe6e4a3699322c12dcfb.tar.xz android_bootable_recovery-eef991389c7f739dd80bbe6e4a3699322c12dcfb.tar.zst android_bootable_recovery-eef991389c7f739dd80bbe6e4a3699322c12dcfb.zip |
Diffstat (limited to 'updater/blockimg.cpp')
-rwxr-xr-x | updater/blockimg.cpp | 6 |
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, ¶ms->cpos, ¶ms->buffer, ¶ms->bufsize, - params->fd, (params->version >= 3), ¶ms->isunresumable); + params->fd, (params->version >= 3)); } static int PerformCommandFree(CommandParameters* params) { |