aboutsummaryrefslogtreecommitdiff
path: root/src/common.c
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2021-01-12 17:38:30 +0100
committerJan200101 <sentrycraft123@gmail.com>2021-01-12 17:38:30 +0100
commitbaca7635a3db27bae911ab6ebe928e5c2cc5a155 (patch)
treee9bde5656d208cd03f954a624aa564b195617220 /src/common.c
parentdad8f3b9ecf5794f1b3c539878f91ee106d28448 (diff)
downloadpolecat-baca7635a3db27bae911ab6ebe928e5c2cc5a155.tar.gz
polecat-baca7635a3db27bae911ab6ebe928e5c2cc5a155.zip
replace float with int math, silence conversions, improve wine call […]
improve parser logic and math reuse
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c
index 29aa3db..151e3a7 100644
--- a/src/common.c
+++ b/src/common.c
@@ -80,7 +80,8 @@ int makeDir(const char* path)
return mkdir(path, 0755);
}
-int removeDir(const char *path) {
+int removeDir(const char *path)
+{
DIR *d = opendir(path);
size_t path_len = strlen(path);
int r = -1;