]> git.tuebingen.mpg.de Git - osl.git/blobdiff - osl.c
Kill all users of ERRNO_TO_ERROR() in util.c and util.h.
[osl.git] / osl.c
diff --git a/osl.c b/osl.c
index 295c88e5e4aa22b7544e729efb8c652fe1e9f546..3f55ed4c24fc3217e6f4925b1b0e6b8d82de550a 100644 (file)
--- a/osl.c
+++ b/osl.c
@@ -1073,10 +1073,10 @@ __export int osl_open_table(const struct osl_table_description *table_desc,
                ret = stat(dirname, &statbuf);
                free(dirname);
                if (ret < 0) {
-                       ret = -ERRNO_TO_ERROR(errno);
+                       ret = -E_OSL_STAT;
                        goto err;
                }
-               ret = -ERRNO_TO_ERROR(ENOTDIR);
+               ret = -E_OSL_NOTDIR;
                if (!S_ISDIR(statbuf.st_mode))
                        goto err;
        }
@@ -1186,7 +1186,7 @@ static int delete_disk_storage_file(const struct osl_table *t, unsigned col_num,
        err = errno;
        free(filename);
        if (ret < 0)
-               return -ERRNO_TO_ERROR(err);
+               return -E_OSL_UNLINK;
        if (!(t->desc->flags & OSL_LARGE_TABLE))
                return 1;
        dirname = disk_storage_dirname(t, col_num, ds_name);