summaryrefslogtreecommitdiffstats
path: root/openrecoveryscript.cpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2017-01-06 21:30:33 +0100
committerDees Troy <dees_troy@teamw.in>2017-01-18 17:50:05 +0100
commit23d8aaef2964659bd5495638d5b85f00ef3f9620 (patch)
treeaab3c7f695b11213a4e7f6838d2829f2c20c5252 /openrecoveryscript.cpp
parentVery minor code cleanup (diff)
downloadandroid_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.tar
android_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.tar.gz
android_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.tar.bz2
android_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.tar.lz
android_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.tar.xz
android_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.tar.zst
android_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.zip
Diffstat (limited to 'openrecoveryscript.cpp')
-rw-r--r--openrecoveryscript.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/openrecoveryscript.cpp b/openrecoveryscript.cpp
index d94775acc..40ad8032b 100644
--- a/openrecoveryscript.cpp
+++ b/openrecoveryscript.cpp
@@ -604,7 +604,6 @@ int OpenRecoveryScript::Backup_Command(string Options) {
char value1[SCRIPT_COMMAND_SIZE];
int line_len, i;
string Backup_List;
- bool adbbackup = false;
strcpy(value1, Options.c_str());
@@ -748,13 +747,11 @@ int OpenRecoveryScript::Restore_ADB_Backup(void) {
bool breakloop = false;
int partition_count = 0;
std::string Restore_Name;
- std::size_t pos = 0;
struct AdbBackupFileTrailer adbmd5;
struct PartitionSettings part_settings;
- int adb_control_twrp_fd, adb_write_fd, systemro;
+ int adb_control_twrp_fd;
int adb_control_bu_fd, ret = 0;
char cmd[512];
- int orsfd = open(ORS_OUTPUT_FILE, O_WRONLY);
part_settings.total_restore_size = 0;