From: Andre Noll Date: Wed, 19 Sep 2007 21:12:52 +0000 (+0200) Subject: Remove unused -E_LSTAT. X-Git-Tag: v0.3.0~383^2~1 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=340eefa8e83c72319de0feda257d49e668b33f22;ds=inline Remove unused -E_LSTAT. --- diff --git a/error.h b/error.h index 7dafc606..e9083f75 100644 --- 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 7f6ffdb9..fa37dea9 100644 --- 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;