summaryrefslogtreecommitdiffstats
path: root/makelist.c
diff options
context:
space:
mode:
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;