X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fisdir.c;h=11fe426b2b71c16f2c17109e60cdf4ad90da16df;hb=9df4453b386268b137f71b0e9548f67e03565dd4;hp=f653fafc936b000c6fe66cebba93d56e7b17e446;hpb=67f394c1d2be473276ccd5e071f986511a13e212;p=gnulib.git diff --git a/lib/isdir.c b/lib/isdir.c index f653fafc9..11fe426b2 100644 --- a/lib/isdir.c +++ b/lib/isdir.c @@ -13,7 +13,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, - Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #if HAVE_CONFIG_H # include @@ -22,20 +22,19 @@ #include #include -#ifdef STAT_MACROS_BROKEN +#if STAT_MACROS_BROKEN # undef S_ISDIR -#endif /* STAT_MACROS_BROKEN. */ +#endif -#if !defined(S_ISDIR) && defined(S_IFDIR) -# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) +#if !defined S_ISDIR && defined S_IFDIR +# define S_ISDIR(Mode) (((Mode) & S_IFMT) == S_IFDIR) #endif /* If PATH is an existing directory or symbolic link to a directory, return nonzero, else 0. */ int -isdir (path) - char *path; +isdir (const char *path) { struct stat stats;