summaryrefslogtreecommitdiffstats
path: root/twrpTar.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 /twrpTar.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 '')
-rw-r--r--twrpTar.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/twrpTar.cpp b/twrpTar.cpp
index 4a71159cc..7e4d29a7a 100644
--- a/twrpTar.cpp
+++ b/twrpTar.cpp
@@ -114,9 +114,7 @@ void twrpTar::Set_Archive_Type(Archive_Type archive_type) {
int twrpTar::createTarFork(pid_t *tar_fork_pid) {
int status = 0;
- pid_t rc_pid;
- int progress_pipe[2], ret;
- char cmd[512];
+ int progress_pipe[2];
file_count = 0;
if (backup_exclusions == NULL) {
@@ -484,8 +482,8 @@ int twrpTar::createTarFork(pid_t *tar_fork_pid) {
int twrpTar::extractTarFork() {
int status = 0;
- pid_t rc_pid, tar_fork_pid;
- int progress_pipe[2], ret;
+ pid_t tar_fork_pid;
+ int progress_pipe[2];
if (pipe(progress_pipe) < 0) {
LOGINFO("Error creating progress tracking pipe\n");
@@ -661,7 +659,6 @@ int twrpTar::Generate_TarList(string Path, std::vector<TarListStruct> *TarList,
struct stat st;
string FileName;
struct TarListStruct TarItem;
- string::size_type i;
int ret, file_count;
file_count = 0;
@@ -770,7 +767,6 @@ int twrpTar::tarList(std::vector<TarListStruct> *TarList, unsigned thread_id) {
int list_size = TarList->size(), i = 0, archive_count = 0;
string temp;
char actual_filename[PATH_MAX];
- char *ptr;
unsigned long long fs;
if (split_archives) {