Merge "updater: Remove the unused isunresumable in SaveStash()."

This commit is contained in:
Tao Bao 2015-08-26 21:03:01 +00:00 committed by Gerrit Code Review
commit eef991389c

View file

@ -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, static int SaveStash(const std::string& base, char** wordsave, uint8_t** buffer,
size_t* buffer_alloc, int fd, int usehash, bool* isunresumable) { size_t* buffer_alloc, int fd, bool usehash) {
if (!wordsave || !buffer || !buffer_alloc || !isunresumable) { if (!wordsave || !buffer || !buffer_alloc) {
return -1; return -1;
} }
@ -1129,7 +1129,7 @@ static int PerformCommandStash(CommandParameters* params) {
} }
return SaveStash(params->stashbase, &params->cpos, &params->buffer, &params->bufsize, 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) { static int PerformCommandFree(CommandParameters* params) {