Modify the device specific recovery code to match the edify change.
am: 26d1d7701c
Change-Id: I5a235307d0964388c9861b37d5b4175eef1eb13b
diff --git a/recovery/recovery_updater.cpp b/recovery/recovery_updater.cpp
index fa23078..8133857 100644
--- a/recovery/recovery_updater.cpp
+++ b/recovery/recovery_updater.cpp
@@ -26,6 +26,7 @@
#include <cutils/properties.h>
#include <sys/mman.h>
+#include <memory>
#include <string>
#include <vector>
@@ -286,18 +287,19 @@
return ret;
}
-Value* FlashIfwiFuguFn(const char *name, State * state, int argc, Expr * argv[]) {
+Value* FlashIfwiFuguFn(const char *name, State * state,
+ const std::vector<std::unique_ptr<Expr>>& argv) {
Value *ret = NULL;
unsigned char *buffer = NULL;
int ifwi_size;
FILE *f = NULL;
- if (argc != 1) {
- ErrorAbort(state, "%s() expected 1 arg, got %d", name, argc);
+ if (argv.size() != 1) {
+ ErrorAbort(state, "%s() expected 1 arg, got %zu", name, argv.size());
return NULL;
}
std::vector<std::string> args;
- if (!ReadArgs(state, 1, argv, &args)) {
+ if (!ReadArgs(state, argv, &args)) {
ErrorAbort(state, "%s() invalid args ", name);
return NULL;
}