]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 7dafc606a0adf5725d9abbfce206696e7ff569cb..e9083f75f42eb743f5416faa4d30aea864a314dd 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 7f6ffdb9094a4b4deb12c49a876f6118a05473e5..fa37dea95ce42faec7131e0b371c837790361c3d 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;