]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Fix checking of return values from osl_open().
authorAndre Noll <maan@systemlinux.org>
Fri, 12 Jun 2009 19:39:38 +0000 (21:39 +0200)
committerAndre Noll <maan@systemlinux.org>
Fri, 12 Jun 2009 19:39:38 +0000 (21:39 +0200)
aft.c
attribute.c
blob.c

diff --git a/aft.c b/aft.c
index db4c494d07bcd7c759de9708d1f2c30d4ba278aa..f425b6d3d81431b61fe0541742905c4af6b1af96 100644 (file)
--- a/aft.c
+++ b/aft.c
@@ -2574,7 +2574,7 @@ static int aft_open(const char *dir)
        }
        PARA_INFO_LOG("failed to open audio file table\n");
        audio_file_table = NULL;
-       if (ret >= 0 || is_errno(-ret, ENOENT))
+       if (ret >= 0 || ret == -OSL_ERRNO_TO_PARA_ERROR(E_OSL_NOENT))
                return 1;
        return ret;
 }
index 4784aee96caef2cf6f2a2e809b4998bcc446aa69..dc375c1d8dc57aea4e5ed06c7bfdf6092fa16880 100644 (file)
@@ -587,7 +587,7 @@ static int attribute_open(const char *dir)
                return ret;
        }
        attribute_table = NULL;
-       if (ret >= 0 || is_errno(-ret, ENOENT))
+       if (ret >= 0 || ret == -OSL_ERRNO_TO_PARA_ERROR(E_OSL_NOENT))
                return 1;
        return ret;
 }
diff --git a/blob.c b/blob.c
index f635eb0df3230904bdd1be1ebbef07ce7221a4b0..b4ac2fa4a0954f8b687e1d27f7f07b1341767c79 100644 (file)
--- a/blob.c
+++ b/blob.c
@@ -525,7 +525,7 @@ static int blob_open(struct osl_table **table,
        if (ret >= 0)
                return ret;
        *table = NULL;
-       if (ret >= 0 || is_errno(-ret, ENOENT))
+       if (ret >= 0 || ret == -OSL_ERRNO_TO_PARA_ERROR(E_OSL_NOENT))
                return 1;
        return ret;
 }