Return -E_OSL_NOENT if stat/open fails with errno == ENOENT.
[osl.git] / fsck.c
diff --git a/fsck.c b/fsck.c
index e623b3789f284910c6a9b7ad6fbea5231030ed57..bd1b5567ba86c05d2f168ecf9506c8dcda7ab5f7 100644 (file)
--- a/fsck.c
+++ b/fsck.c
@@ -14,7 +14,6 @@
 
 #include "log.h"
 #include "osl.h"
-#include "error.h"
 #include "util.h"
 #include "osl_core.h"
 #include "fsck.cmdline.h"
@@ -44,6 +43,7 @@ static struct fsck_args_info conf;
        FSCK_ERROR(CHDIR, "could not change directory"), \
        FSCK_ERROR(OPENDIR, "could not open directory"),
 
+#define FSCK_ERROR_BIT 29
 #define FSCK_ERROR(num, txt) E_FSCK_ ## num
 enum {
        FSCK_DUMMY = (1 << FSCK_ERROR_BIT) - 1,