Remove some system errors from errno.h
[paraslash.git] / aft.c
diff --git a/aft.c b/aft.c
index c6ca289..5112aff 100644 (file)
--- a/aft.c
+++ b/aft.c
@@ -2213,5 +2213,7 @@ int aft_init(struct table_info *ti, const char *db)
        }
        PARA_INFO_LOG("failed to open audio file table\n");
        audio_file_table = NULL;
-       return ret == -E_NOENT? 1 : ret;
+       if (ret >= 0 || is_errno(-ret, ENOENT))
+               return 1;
+       return ret;
 }