From: Jim Meyering Date: Wed, 1 Feb 2006 14:43:24 +0000 (+0000) Subject: (find_dir_entry): Remove unused local, `ent_sb_valid'. X-Git-Tag: v6.0~810 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81b5d8af5f76abe3d2742733fba39e944fd73087;p=thirdparty%2Fcoreutils.git (find_dir_entry): Remove unused local, `ent_sb_valid'. --- diff --git a/src/pwd.c b/src/pwd.c index f89c8d1e5e..8729990a51 100644 --- a/src/pwd.c +++ b/src/pwd.c @@ -1,5 +1,5 @@ /* pwd - print current directory - Copyright (C) 1994-1997, 1999-2005 Free Software Foundation, Inc. + Copyright (C) 1994-1997, 1999-2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -186,7 +186,6 @@ find_dir_entry (struct stat *dot_sb, struct file_name *file_name, struct dirent const *dp; struct stat ent_sb; ino_t ino; - bool ent_sb_valid; errno = 0; if ((dp = readdir_ignoring_dot_and_dotdot (dirp)) == NULL) @@ -206,7 +205,6 @@ find_dir_entry (struct stat *dot_sb, struct file_name *file_name, ino = D_INO (dp); - ent_sb_valid = false; if (ino == NOT_AN_INODE_NUMBER || use_lstat) { if (lstat (dp->d_name, &ent_sb) < 0) @@ -215,7 +213,6 @@ find_dir_entry (struct stat *dot_sb, struct file_name *file_name, continue; } ino = ent_sb.st_ino; - ent_sb_valid = true; } if (ino != dot_sb->st_ino)