aboutsummaryrefslogtreecommitdiff
path: root/src/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/common.c b/src/common.c
index 151e3a7..36cd2d9 100644
--- a/src/common.c
+++ b/src/common.c
@@ -1,7 +1,5 @@
-
#include <stdio.h>
#include <string.h>
-#include <stdbool.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/types.h>
@@ -39,14 +37,14 @@ struct stat getStat(const char* path)
return sb;
}
-bool isFile(const char* path)
+int isFile(const char* path)
{
struct stat sb = getStat(path);
return S_ISREG(sb.st_mode) || S_ISLNK(sb.st_mode);
}
-bool isDir(const char* path)
+int isDir(const char* path)
{
struct stat sb = getStat(path);