summaryrefslogtreecommitdiffstats
path: root/twrpTar.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--twrpTar.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/twrpTar.cpp b/twrpTar.cpp
index 28ac91ac1..b5d66d31b 100644
--- a/twrpTar.cpp
+++ b/twrpTar.cpp
@@ -300,7 +300,7 @@ int twrpTar::createTarFork(const unsigned long long *overall_size, const unsigne
_exit(-1);
} else {
LOGINFO("Joined thread %i.\n", i);
- ret = (int)thread_return;
+ ret = *((int *)thread_return);
if (ret != 0) {
thread_error = 1;
LOGERR("Thread %i returned an error %i.\n", i, ret);
@@ -532,7 +532,7 @@ int twrpTar::extractTarFork(const unsigned long long *overall_size, unsigned lon
_exit(-1);
} else {
LOGINFO("Joined thread %i.\n", i);
- ret = (int)thread_return;
+ ret = *((int *)thread_return);
if (ret != 0) {
thread_error = 1;
LOGERR("Thread %i returned an error %i.\n", i, ret);
@@ -751,7 +751,7 @@ int twrpTar::tarList(std::vector<TarListStruct> *TarList, unsigned thread_id) {
LOGERR("Error closing '%s' on thread %i\n", tarfn.c_str(), thread_id);
return -3;
}
- LOGINFO("Thread id %i tarList done, %i archives.\n", thread_id, archive_count, i, list_size);
+ LOGINFO("Thread id %i tarList done, %i archives.\n", thread_id, archive_count);
return 0;
}