Remove unused -E_LSTAT.
authorAndre Noll <maan@systemlinux.org>
Wed, 19 Sep 2007 21:12:52 +0000 (23:12 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 19 Sep 2007 21:12:52 +0000 (23:12 +0200)
error.h
osl.c

diff --git a/error.h b/error.h
index 7dafc60..e9083f7 100644 (file)
--- a/error.h
+++ b/error.h
@@ -156,7 +156,6 @@ extern const char **para_errlist[];
        PARA_ERROR(RBTREE_EMPTY, "rbtree is empty"), \
        PARA_ERROR(BAD_ROW, "invalid row"), \
        PARA_ERROR(OSL_GETCWD, "can not get current working directory"), \
-       PARA_ERROR(OSL_LSTAT, "lstat error"), \
 
 
 #define RBTREE_ERRORS \
diff --git a/osl.c b/osl.c
index 7f6ffdb..fa37dea 100644 (file)
--- a/osl.c
+++ b/osl.c
@@ -289,7 +289,6 @@ int for_each_file_in_dir(const char *dirname,
                        continue;
                if (!strcmp(entry->d_name, ".."))
                        continue;
-               ret = -E_OSL_LSTAT;
                if (lstat(entry->d_name, &s) == -1)
                        continue;
                m = s.st_mode;