summaryrefslogtreecommitdiffstats
path: root/makelist.c
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-18 21:40:25 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-18 21:44:39 +0200
commit8170a921453945caffb31c06d563010e8a182b3d (patch)
tree570e5aebccc70b1c4ba2ae29b9e3dd16dd44e16d /makelist.c
parentImprove backup and restore (diff)
downloadandroid_bootable_recovery-8170a921453945caffb31c06d563010e8a182b3d.tar
android_bootable_recovery-8170a921453945caffb31c06d563010e8a182b3d.tar.gz
android_bootable_recovery-8170a921453945caffb31c06d563010e8a182b3d.tar.bz2
android_bootable_recovery-8170a921453945caffb31c06d563010e8a182b3d.tar.lz
android_bootable_recovery-8170a921453945caffb31c06d563010e8a182b3d.tar.xz
android_bootable_recovery-8170a921453945caffb31c06d563010e8a182b3d.tar.zst
android_bootable_recovery-8170a921453945caffb31c06d563010e8a182b3d.zip
Diffstat (limited to 'makelist.c')
-rw-r--r--makelist.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/makelist.c b/makelist.c
index ed7cce948..1a2f0a61c 100644
--- a/makelist.c
+++ b/makelist.c
@@ -26,7 +26,6 @@
#include <sys/stat.h>
#include <dirent.h>
-#include "extra-functions.h"
#include "common.h"
#include "data.h"
#include "variables.h"
@@ -40,11 +39,11 @@ unsigned long long getUsedSizeViaDu(const char* path)
sprintf(cmd, "du -sk %s | awk '{ print $1 }'", path);
FILE *fp;
- fp = __popen(cmd, "r");
+ fp = popen(cmd, "r");
char str[512];
fgets(str, sizeof(str), fp);
- __pclose(fp);
+ pclose(fp);
unsigned long long size = atol(str);
size *= 1024ULL;
@@ -146,8 +145,8 @@ int make_file_list(char* path)
{
makelist_file_count = 0;
makelist_current_size = 0;
- __system("cd /tmp && rm -rf list");
- __system("cd /tmp && mkdir list");
+ system("cd /tmp && rm -rf list");
+ system("cd /tmp && mkdir list");
if (generate_file_lists(path) < 0) {
LOGE("Error generating file list\n");
return -1;